Convert Json String to PyObject

Hi,

I am a bit lost in sdk about json.

I have a json string I need to convert to PyObject for the result returned by a script function in a module.

What is the best way to achieve this with the sdk ?

org.json.JSONObject() return JSONObject ?

But I don’t fin any class to manipule it ?
com.inductiveautomation.ignition.common.TypeUtilities with gsonToPy need JsonElement ?
com.inductiveautomation.ignition.common.JsonUtilities ?

You can probably just call SystemUtilities.jsonDecode if you want the exact same behavior as the scripting function.

1 Like

Perfect ! I was quite sure there was something built-in in the sdk.