Lines Matching refs:JSON
3 This library provides functions to parse a JSON file to a structured Protobuf
7 unknown fields in a JSON file cannot be ignored. Do **NOT** use this library in
14 logic of `libjsoncpp` and `libprotobuf` when parsing JSON files.
18 - The JSON file must use strings (to pass tests in `libjsonpbverify`)
25 - The JSON file must use strings (e.g. `"NaN"`, `"Infinity"`, `"-Infinity"`)
39 defined) or the original field name as keys in the input JSON file.
45 `libjsonpbparse` is updated to ignore unknown fields in JSON files, all parsing
50 This library provides functions and tests to examine a JSON file and validate
53 In addition to a validity check that `libprotobuf` can convert the JSON file to a
56 - Whether there are fields unknown to the schema. All fields in the JSON file
58 - Whether the Protobuf file defines JSON keys clearly. The JSON keys must be
63 in the JSON file:
72 - Enum values must be present as names (not integer values) in the JSON file.
76 ## Defining a JSON schema using Protobuf
78 Check [JSON Mapping](https://developers.google.com/protocol-buffers/docs/proto3#json)
79 before defining a Protobuf object as a JSON schema. In general:
82 - JSON booleans should be `bool`.
83 - JSON numbers should be `(s|fixed|u|)int32`, `float`, or `double` in the schema
84 - JSON strings are generally `string`s, but if you want to impose more
91 - JSON arrays should be repeated fields.
92 - JSON objects should be a well-defined `message`, unless you have a good reason
96 ## Validating a JSON file against a Protobuf definition