-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose transit.encoder
factory fn
#23
Comments
swannodette
changed the title
Encoding an object to an object
Expose Jan 20, 2015
transit.encoder
factory fn
I would like that too! 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. |
I'd like this too - when passing data from the server to the client via a JS literal, this allows skipping the intermediary string: var __STATE = ["^", // ...
// vs
var __STATE = '["^", // ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: