Export 2d Curves to JSON metadata

Curves, as with anything that inherits from CommonObject have a handy little ToJSON() Method you can use for this purpose.
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Runtime_CommonObject_ToJSON.htm

I wrote an example here of serializing/deserializing a while ago;

1 Like