Skip to main content
New Participant
Dec 16, 2022 8:46 AM UTC
Question

formatjson convert &,[,] to unicode

When I use formatjson function, it automatically change "&" to "\u0026" , and "<>" to "\u003c\u003e", how to aviod that?

Can anybody help?

Thanks

4 replies

stefanhelzle0001
Brainy
Dec 16, 2022 11:12 AM UTC

Here we trade tips for details. Can you share a more details about your use case?

New Participant
Dec 19, 2022 2:45 AM UTC

I use this plugin called "Procensol Json Formatter"

but it supposed to be like this: 

{

"name": "abc&123",

"age": "<18",

"weight": ">30kg"

}

Do you have any suggestions?

Thanks!

Inspiring
Dec 20, 2022 5:00 AM UTC

You might be able to use this function a!fromJson( jsonText )

https://docs.appian.com/suite/help/22.4/fnc_system_a_fromjson.html

New Participant
Dec 20, 2022 5:11 AM UTC

I don't want to converts a JSON string into an Appian value, just want to format json, and make it more readable.