# JSON
{id: json}

## JSON (to_json, parse)
{id: parse-json}
{i: json}
{i: to_json}
{i: parse}

* Round trip with JSON
* Have to `require "json"` for the method to be added.

![](examples/json/json.cr)

## JSON to NamedTuple
{id: json-to-namedtuple}
{i: NamedTuple}
{i: from_json}
{i: JSON}

![](examples/json/json_to_named_tuple.cr)

## Reading a JSON file
{id: reading-a-json-file}
{i: NamedTuple}

![](examples/json/math.json)
![](examples/json/read_math_json.cr)

## JSON to Array
{id: json-to-array}
{i: JSON}
{i: from_json}

![](examples/json/json_to_array.cr)




