Curl Global Community

Full Version: Source code for COM.CURL.IO.JSON
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:

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