Skip to content

Proto to JSON #488

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

Closed
eltoro opened this issue Nov 9, 2016 · 2 comments
Closed

Proto to JSON #488

eltoro opened this issue Nov 9, 2016 · 2 comments

Comments

@eltoro
Copy link

eltoro commented Nov 9, 2016

Other than using pbjs, Is there an easy way to parse a protocol buffer object into a JSON format like:

{
  package: '',
  services: [ ],
  messages: []
}

I'm using protobuf.js 5 through grpc.load(). Right now I'm parsing it manually.

@dcodeIO
Copy link
Member

dcodeIO commented Nov 9, 2016

You could manually spin up an instance of ProtoBuf.Parser.

@eltoro
Copy link
Author

eltoro commented Nov 10, 2016

Thanks, that worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants