Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature request: implement messageToJson #61
Comments
|
Sure. Can you volunteer an implementation? Edit: A quick Google search reveals support in the API: |
|
Unfortunately I have very little experience with c and none with c++. The best I could do would be to attempt to reformat the |
|
No we'd need someone with a few spare hours, interest and and enough knowledge to export the function in that third link I showed. I'll add a 'help wanted' label but I won't have time in the near future. |
|
A big BIG BIG Thank You! to @siddharthab for making it happen. Soon to be on a CRAN mirror near you. |
Just trying to keep promises I made long ago. |
|
Hah! That was indeed a long(ish) time ago! |
The python protobuf package easily converts a message into a json implementation. See https://developers.google.com/protocol-buffers/docs/reference/python/
The RProtoBuf functions
toStringandas.charactercreate text representations that look like JSON, but aren't (they're mostly missing commas and quotes). I think it would be wonderful to have a fast C implementation of this, especially as theas.listfunction doesn't work recursively.