Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6645543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:18:01+00:00 2026-05-26T00:18:01+00:00

There are frameworks for Java and other languages that help connect protocol buffers to

  • 0

There are frameworks for Java and other languages that help connect protocol buffers to JSON, but I have not seen a native solution in C++.

Is there a library/framework that I can use to connect C++ protocol buffer objects to JSON?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:18:01+00:00Added an answer on May 26, 2026 at 12:18 am

    I’m developing one. I’m using the protobuf’s reflection mechanism to parse any generated protobuf. Here http://corbasim.googlecode.com/svn/trunk/protobuf2json_exported.zip you can find an initial implementation of this idea. It currently just parse string fields, but I want to support any type as soon as possible.

    For a message Foo:

    message Foo {
       optional string text = 1;
    }
    

    it can parse instances of Foo by this way:

    Foo foo;
    
    const std::string json_foo = "{\"text\": \"Hello world\"}";
    
    protobuf2json::json::parse(foo, json_foo)
    

    By the same way, I want to write a JSON serializer from protobuf generated types.

    There is a similar question here:

    C++ Protobuf to/from JSON conversion

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using Spring with Java and I've seen that there is a version
I am aware that by default Java does not have the so-called eval (what
Is there other Java Web frameworks other than JSF which work well with CDI?
Let me first say that I have quite a lot of Java experience, but
Is there a java library or framework (other than the javax.comm provided by Sun)
Are there any Alert (or Notification) frameworks in Java out there. In my web
Is there a Java web framework that allows the user to create custom fields,
Are there any good JavaScript frameworks out there which primary audience is not web
Are there any tests that compare Javascript's performance with Java's? UPDATE: Since everyone is
A lot of programming languages and frameworks do/allow/require something that I can't seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.