NAME ^

JSON (JavaScript Object Notation) is a lightweight data-interchange format.

SYNOPSIS ^

Given a valid JSON string, the compiler will return a PMC containing the appropriate values. For example:

 .local pmc JSON
 JSON = compreg 'JSON'
 $P0 = JSON('[1,2,3]')

Will create a pmc that does array, contains the values 1, 2, and 3, and store it in register $P0.

For more information about the structure of the JSON representation, see the documentation at http://www.json.org/.


parrot