Skip to content
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

JS: Possible to de-searlize object from JSON? #70

Closed
MikeSilvis opened this issue Apr 20, 2018 · 6 comments
Closed

JS: Possible to de-searlize object from JSON? #70

MikeSilvis opened this issue Apr 20, 2018 · 6 comments
Labels

Comments

@MikeSilvis
Copy link

Part of the Proto3 spec is to be able top serialize protomodels to and from JSON. I see a way to serialize a proto object to JSON, but not parse it back. Is this possible? And if so, how should i go about it.

@TeBoring
Copy link

Currently, we don't support that.

@MikeSilvis
Copy link
Author

@TeBoring it's part of the Proto3 Spec though. Is it on the roadmap?

@xfxyjwf xfxyjwf added enhancement New feature or request javascript P3 labels Jun 22, 2018
@xfxyjwf xfxyjwf reopened this Jun 22, 2018
@xfxyjwf
Copy link

xfxyjwf commented Jun 22, 2018

This should be on our roadmap, but it's not prioritized right now.

@zim32
Copy link

zim32 commented May 12, 2021

Oh my good google. Issue opened in 2018 year still no progress. Without this feature javascript protobuf is useless. Calling setters just to convert from one format to another is very annoying

It will be super handy to create messages like f.e.

SomeMeesage.fromJson({...})

I think i will create helper function for this in one day

@thesayyn
Copy link

thesayyn commented Sep 8, 2021

@zim32
Perhaps you could make use of
thesayyn/protoc-gen-ts#85

@elharo elharo added the json label Sep 13, 2021
@acozzette acozzette transferred this issue from protocolbuffers/protobuf May 16, 2022
@dibenede
Copy link
Contributor

Duplicate of #28

@dibenede dibenede marked this as a duplicate of #28 Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants