lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
980 stars 388 forks source link

stringify or to_json #315

Open micahcc opened 4 years ago

micahcc commented 4 years ago

Hey! It would be helpful in a lot of debugging applications to have a to_json function. Would there be any interest in this? I am happy to implement if there is.

Example Usage:

exlcm::example_t ex;
char data[1024];
ex.to_json(data, 0, 1024);