One day this repository is going to be a sophisticated developer's toolbox. As of today, it provides only trivial functionality substituting JSON.stringify, which is somewhat broken in ThingWorx:
var str = Resources["DevelopFunctions"].JsonToString({ json: yourJsonHere });
- Download extension's ZIP file
- Make sure that your ThingWorx is configured to allow installing server-side extensions (ThingWorx 8.4+)
- Open ThingWorx Composer > Import/Export > Extensions > Import
- Select the ZIP file, upload and refresh the browser page as suggested
- You can use the extension, no need to restart the server
To upgrade the extension, you'll need to repeat the same steps as for installing.
To remove the extension from your ThingWorx installation you'll need to:
- Check your code to make sure that you don't use it anywhere (a handy way to do it would be exporting all your entities "to source control",
i.e. as a bunch of XML files and do a
grep
over those files, looking forDevelopFunctions
. - Uninstall it via Composer > Import/Export > Extensions > Manage
- Restart the server
The extension is based on Google gson library, which is also distributed under Apache 2.0 license. Gson is not used in out-of-the-box ThingWorx, this library is quite lightweight and there are no other dependencies, so it shouldn't conflict with the standard ThingWorx distribution.
- Copy
thingworx-*.jar
JAR files from ThingWorx installation into/twx-lib
directory; - Execute
ant -f build-extension.xml
Vilia does not support this extension, nor liable for any side effects of installing it on your ThingWorx system. Use it on your own risk. DO NOT USE IT IN PRODUCTION ENVIRONMNENT!