Home | Tutorials | Wiki | Issues
Ask Your Question

prakash's profile - activity

2019-01-18 12:30:09 -0600 commented answer Generic Pub / Sub; To and from JSON

Thank you for taking the time to respond.

2019-01-18 12:29:17 -0600 marked best answer Generic Pub / Sub; To and from JSON

I am interested in subscribing to a set of topics, receiving messages and sending messages to topics. I have a generic subscription as void cb_generic(const std::string& _msg). The content of the string is protobuf binary message which I want to convert to JSON. Any suggestions or examples on how to accomplish this task? The steps I see are:

  1. Convert std::string to protobuf object
  2. Convert protobuf object to json.

Thanks

2019-01-18 12:29:17 -0600 received badge  Scholar (source)
2019-01-18 12:27:53 -0600 received badge  Popular Question (source)
2018-12-17 17:58:05 -0600 asked a question Generic Pub / Sub; To and from JSON

Generic Pub / Sub; To and from JSON I am interested in subscribing to a set of topics, receiving messages and sending me