json2pb icon indicating copy to clipboard operation
json2pb copied to clipboard

Python/C++ implementation of JSON to/from Protobuf convertor

Results 6 json2pb issues
Sort by recently updated
recently updated
newest added

``` std::string pb2json(const Message &msg, const int indentation /* = 0 */) { ... json_dump_callback(root, json_dump_std_string, &r, JSON_INDENT(indentation)); } ```

does this work on osx? > make > cc -Wl,-rpath -Wl,. -o libjson2pb.so json2pb.o -Wl,-soname=libjson2pb.so -Wl,-h -Wl,libjson2pb.so -shared -L. -lcurl -lprotobuf -lstdc++ -ljansson > ld: unknown option: -soname=libjson2pb.so > clang:...

Notice that for json2pb.py, using test.proto, the value for '_bin' field is incorrectly serialized into '0a0a0a0a\n' after doing json->pb->json. As shown in http://bugs.python.org/issue17714, python str.encode() with 'base64' as argument adds...

These are pretty minor changes to the Makefile that allow build on my system.