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
We expose transit.decoder so that users can decode already parsed JSON. However there is no analogous transit.encoder encoder factory function that takes an Object graph and returns the JSON Object graph prior to string serialization.
The text was updated successfully, but these errors were encountered:
swannodette
changed the title
Encoding an object to an object
Expose transit.encoder factory fn
Jan 20, 2015
I'm using transit for a not too big data structure, but one that changes too often - several times in a second, and calling JSON.parse to read the object from string seems to block the thread.
We expose
transit.decoder
so that users can decode already parsed JSON. However there is no analogoustransit.encoder
encoder factory function that takes an Object graph and returns the JSON Object graph prior to string serialization.The text was updated successfully, but these errors were encountered: