Convert JSON
The Convert JSON component converts your parsed JSON objects into common Grasshopper data types. The most basic conversion is by giving an array of 3 numbers that are then turned into points:
![](../__attachments/1877508120/image-20211227-165340.png?inst-v=e5ce2f58-1e1b-4ff3-aa8e-9fc4fb984962)
However, you can send more complex JSON structures to create colors, boxes, nurbs surfaces, nurbs curves, transformations and more. The JSON has to be organised by providing a “type” attribute and a “data” attribute. For example, in order to create a color we will call our “type”:“color” and the “data” will contain an array of 3 numbers which represent the Red, Green and Blue values. A box needs a plane with origin, X axis and Y axis and an array with three domains defining the size for each axis.
![](../__attachments/1877508120/image-20211227-170648.png?inst-v=e5ce2f58-1e1b-4ff3-aa8e-9fc4fb984962)