You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ZapAnton
changed the title
Proper way to deserialize json data
Proper way to deserialize json data with Rhino.Python
Aug 13, 2020
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
The text was updated successfully, but these errors were encountered: