07-01-2011, 09:56 AM
There was a support request for JSON support for Curl 5.0 applets. The source code for the JSON package is attached.
Here is a trivial applet that uses the package:
com-curl-io-json.zip
Here is a trivial applet that uses the package:
Code:
{curl 5.0 applet}
{curl-file-attributes character-encoding = windows-latin-1}
{applet ||manifest = manifest.mcurl,
{compiler-directives
allow-import-locations? = true,
careful? = true
}
}
{import * from COM.CURL.IO.JSON,
location = json-src/load-json.scurl
}
{let x:JsonObject = {JsonObject a, 33}}
{value x[a]}
com-curl-io-json.zip