Source: AltJSON (compatible with R3)

From the REBOL Console:

do http://www.ross-gill.com/r/altjson.r
? load-json
? to-json

Sample Usage

Basic conversion:

>> do http://www.ross-gill.com/r/altjson.r
connecting to: www.ross-gill.com
Script: "REBOL <-> JSON" (18-Jul-2010)
>> to-json ["A" "block" of 6.0 REBOL #values]
== {["A","block","of",6.0,"REBOL","values"]}
>> probe load-json {{"foo":"bar","num":10,"null":null}}
make object! [
foo: "bar"
num: 10
null: none
]

Posted by Chris-RG, 16 days ago