Load a JSON string into a data structure.
Also, create a new data structure and serialize it into JSON.

Use objects and arrays (as appropriate for your language)
and make sure your JSON is valid (https://jsonformatter.org).

 
#lang racket
 
(require json)
 
(string->jsexpr
 "{\"foo\":[1,2,3],\"bar\":null,\"baz\":\"blah\"}")
 
(write-json '(1 2 "three" #hash((x . 1) (y . 2) (z . 3))))
 