JSON: Difference between revisions
Content added Content deleted
m (Updated the output to be consistent with what Nim version 1.4 produces.) |
|||
Line 1,546: | Line 1,546: | ||
} |
} |
||
Create a new data structure (here a Json pair) |
Create a new Json data structure (here a Json pair), and insert it into the previous Json object. Print it again. |
||
<pre> |
<pre> |
||
j{ "another":"esc\"ap\u20ACed" }j 1 j :insert j :. |
j{ "another":"esc\"ap\u20ACed" }j 1 j :insert j :. |
||
Line 1,560: | Line 1,560: | ||
Serialize the JSON object into a string. Print the string. |
|||
<pre> |
<pre> |
||
j json>$ :. |
j json>$ :. |