protobuf2json-c icon indicating copy to clipboard operation
protobuf2json-c copied to clipboard

Pure C implementation of Protobuf to/from JSON converter

Results 7 protobuf2json-c issues
Sort by recently updated
recently updated
newest added

Some memory leaks are fixed, which may happen if there is an error while processing nested or repeated messages. * 'array' in protobuf2json_process_message() should be freed on error * protobuf2json_process_field()...

In section PROTOBUF_C_LABEL_REPEATED (func protobuf2json_process_message) protobuf_values_count is offset for value, not size! `const size_t *protobuf_values_count = (const size_t *)protobuf_value_quantifier;` then you use it as size ``` for (j = 0;...

According to the 'JSON Mapping' section in the proto3 Language guide found here: https://developers.google.com/protocol-buffers/docs/proto3#json It is mentioned that NULL repeated fields should be converted to an empty list. Currently protobuf2json-c...

The proto3 JSON to protobuf mapping specifies behaviour for 64 bit numbers that protobuf2json-c does not currently follow: - 64 bit values will be written out as strings - Integers...

Google's spec for converting between proto3 and JSON[1] specifies that 64 bit integers should be encoded as JSON strings instead of JSON numbers. I think it would be a good...

http://stackoverflow.com/questions/28433976/converting-protocol-buffers-to-from-json-in-c-without-generating-c-code

question

Considering the following use case: ``` int result; char error_string[256] = {0}; const char *initial_json_string = \ "{\n" " \"name\": \"John Doe\",\n" " \"id\": 42\n" "}"; Foo__Person* pPerson = NULL;...

question