- 26 Oct, 2018 1 commit
-
-
Tim authored
Forward slashes don't need to be escaped in JSON.
-
- 16 Sep, 2018 1 commit
-
-
Kenton Varda authored
-
- 26 Aug, 2018 3 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
- 19 Aug, 2018 1 commit
-
-
Kenton Varda authored
-
- 15 Aug, 2018 14 commits
-
-
Kenton Varda authored
In particular, it should not be necessary to specify a void union member's value explicitly. The discriminator should be sufficient. It should also be permitted to omit default values as long as the descriminator specifies the variant.
-
Kenton Varda authored
(Also make sure that external struct-unions are tested.)
-
Kenton Varda authored
This is particularly needed since JsonValueHandler is re-registered every time a JsonValue field is seen.
-
Kenton Varda authored
-
Kenton Varda authored
The code was init()ing the union field when the discriminant was seen, but this only works if the field type is a struct or group. Instead we store the field schema and initialize it when we see the value later.
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
This avoids the need for a weird struct-as-namespace pattern inside json.capnp.
-
Kenton Varda authored
Features: - Rename any field or enum value for JSON purposes. - Flatten structs/groups into their parent object, possibly with a prefix. - Assign a special discriminant field for unions, so that union members can be flattened without ambiguity.
-
- 17 May, 2018 4 commits
-
-
Ingvar Stepanyan authored
-
Ingvar Stepanyan authored
-
Ingvar Stepanyan authored
Simplifiy implementation and, as a bonus, allow overflowing floating numbers to convert to +/-Infinity like they do in JSON.parse. Also update outdated comment about NaN and Infinity being encoded as `null`.
-
Ingvar Stepanyan authored
- Add support for decoding with Orphanage. - Allow decoding of non-struct root JSON objects. - Add support for custom decoding type handlers. - Add support for custom decoding field handlers.
-
- 05 Feb, 2018 1 commit
-
-
Kenton Varda authored
-
- 29 Apr, 2017 2 commits
-
-
Kenton Varda authored
This reverts commit f836a5fc.
-
Kenton Varda authored
-
- 19 May, 2016 1 commit
-
-
Branislav Katreniak authored
-
- 18 May, 2016 1 commit
-
-
Branislav Katreniak authored
This method provides kj-ish interface to parse numbers. Moves code from capnp json decoder to kj::StringPtr.
-
- 02 May, 2016 1 commit
-
-
Kenton Varda authored
Fix JSON handler for DynamicStruct. The handler needs to be told the struct's schema to construct an orphan. Also improve error message when addTypeHandler() is given a handler for a dynamic type but no specific schema is specified. We could support this eventually but we don't presently.
-
- 23 Apr, 2016 1 commit
-
-
Kenton Varda authored
-
- 21 Apr, 2016 1 commit
-
-
Branislav Katreniak authored
-
- 06 Apr, 2016 2 commits
-
-
Branislav Katreniak authored
This allows to preserve these values in capnp -> json -> capnp conversion.
-
Branislav Katreniak authored
-
- 02 Apr, 2016 2 commits
-
-
Oliver Kuckertz authored
-
Oliver Kuckertz authored
-
- 31 Mar, 2016 1 commit
-
-
Branislav Katreniak authored
-
- 30 Mar, 2016 1 commit
-
-
Branislav Katreniak authored
-
- 23 Mar, 2016 1 commit
-
-
Branislav Katreniak authored
-
- 16 Dec, 2015 1 commit
-
-
Kamal Marhubi authored
This encapsulates the input array, hiding it from the parser's methods. Access is forced to go through `advance` and `consume*` methods on the new `Input` object. The aim is to make it harder to have errors like https://github.com/sandstorm-io/capnproto/pull/270
-