Curl Global Community
Source code for COM.CURL.IO.JSON - Printable Version

+- Curl Global Community (https://communities.curl.com)
+-- Forum: Widgets/Gadgets/Curlets (https://communities.curl.com/forumdisplay.php?fid=15)
+--- Forum: Code Samples (https://communities.curl.com/forumdisplay.php?fid=16)
+--- Thread: Source code for COM.CURL.IO.JSON (/showthread.php?tid=89)



Source code for COM.CURL.IO.JSON - ashimo - 07-01-2011

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