Sha256: 2b6889722203e0d60911ae02f0b60733ed12b1048f0239c1f5f94e5e56ce8f5e
Contents?: true
Size: 903 Bytes
Versions: 22
Compression:
Stored size: 903 Bytes
Contents
JSON OBJECT TYPE NAME: json SHORTCUT: json DESCRIPTION JSON data in a text string. CHILDREN None MESSAGES get - get a value from the JSON data Example: tell myjson to get ("title") The additional parameter is the path to the value. parse - parse the JSON data and put values in the object specified by the additional parameter Example: tell myjson to parse ("path.to.objects") pretty - make the JSON format pretty EXAMPLE json [can] : on_load [script] : list json.objs show json.j tell json.j to parse (json.objs) list json.objs j [json] : {"title":"Brute Force","quotation":"When in doubt, use brute force.","author":"Eric Steven Raymond","source":"The Art of Unix Programming"} objs [can] : title [string] : quotation [string] : SEE ALSO http_get, http_post, uri
Version data entries
22 entries across 22 versions & 2 rubygems