jSwan
jSwan copied to clipboard
Proper way to deserialize json data with Rhino.Python
Hi.
Recently, when developing Rhino commands, using Rhino.Python (https://developer.rhino3d.com/api/RhinoScriptSyntax), I was presented with the task of processing JSON data, that was generated with the help of this plugin.
The curve objects were serialized into something that looks like base64 string.
It is parsable by the base64.b64decode method, but I could not find a way to properly construct curve object from the parsed data.
Perhaps there is a way to construct a proper object using Rhino.Common or one of the coerse methods?
Thanks