org.json no longer available in 11.6.2; what JSON library to use in MX11?

0
I've built several Java actions in MX10 that use the org.json library for JSON manipulation. However, after upgrading to MX11, this library seems to be missing. Could you please tell me what is the recommended new library for JSON manipulation in custom Java actions in the latest Mendix version?
asked
2 answers
0

Hi Miroslav,

 

In Mendix 11, you can use the JSON library that is built into Mendix under the package:

com.mendix.thirdparty.org.json

 

As far as I know the root org.json package is only available automatically if one of the modules in your project (for example, a marketplace module) already includes it. Otherwise, it won’t be accessible.

 

Alternatively, you can still download the original json.jar and add it to your project’s userlib, then configure the build path for it in Eclipse.

 

I hope this helps.

answered
0

I use gson in 10.24, works perfectly. Should work in 11.6 just fine.

answered