- 19 Dec, 2017 1 commit
-
-
Jie Luo authored
Add preserve UnknownFields Compare floating point values bitwise Add auto-generated header to C# generated files
-
- 12 Nov, 2017 1 commit
-
-
Jon Skeet authored
-
- 24 Mar, 2017 1 commit
-
-
Jie Luo authored
-
- 28 Feb, 2017 1 commit
-
-
Jie Luo authored
There might be duplicated enum values when allow_alias is true. Add PreferredAlias into OriginalNameAttribute to remove the duplication (#2727)
-
- 03 Nov, 2016 1 commit
-
-
Jon Skeet authored
This affects cases with leading capital letters. This breaks compatibility with previous C# releases, but fixes compatibility with other implementations. See #2278 for details.
-
- 27 Jul, 2016 2 commits
- 23 Jun, 2016 1 commit
-
-
Jon Skeet authored
This isn't useful to most users, but can be handy in advanced use cases, as requested in #1465.
-
- 11 May, 2016 1 commit
-
- 29 Apr, 2016 1 commit
-
-
Jon Skeet authored
(And likewise ignore the prefix in unpack.) Fixes issue #1459.
-
- 20 Apr, 2016 1 commit
-
-
Jon Skeet authored
JSON tests fail, as we're not using OriginalNameAttribute yet.
-
- 01 Apr, 2016 1 commit
-
-
Jon Skeet authored
(NCrunch noticed these.)
-
- 20 Jan, 2016 1 commit
-
-
Jon Skeet authored
The usage of ICustomDiagnosticMessage here is non-essential - ToDiagnosticString doesn't actually get called by ToString() in this case, due to JsonFormatter code. It was intended to make it clearer that it *did* have a custom format... but then arguably I should do the same for Value, Struct, Any etc. Moving some of the code out of JsonFormatter and into Duration/Timestamp/FieldMask likewise feels somewhat nice, somewhat nasty... basically there are JSON-specific bits of formatting, but also domain-specific bits of computation. <sigh> Thoughts welcome.
-
- 15 Jan, 2016 4 commits
- 11 Jan, 2016 1 commit
-
-
Jon Skeet authored
On deserialization, missing values for message types are replaced with a "default" message.
-
- 06 Jan, 2016 1 commit
-
-
Jon Skeet authored
This involves quoting timestamp/duration/field-mask values, even when they're not in fields. It's better for consistency. Fixes issue #1097.
-
- 02 Dec, 2015 1 commit
-
-
Jon Skeet authored
-
- 03 Nov, 2015 1 commit
-
-
Jon Skeet authored
This includes all the well-known types except Any. Some aspects are likely to require further work when the details of the JSON parsing expectations are hammered out in more detail. Some of these have "ignored" tests already. Note that the choice *not* to use Json.NET was made for two reasons: - Going from 0 dependencies to 1 dependency is a big hit, and there's not much benefit here - Json.NET parses more leniently than we'd want; accommodating that would be nearly as much work as writing the tokenizer This only really affects the JsonTokenizer, which could be replaced by Json.NET. The JsonParser code would be about the same length with Json.NET... but I wouldn't be as confident in it.
-
- 14 Aug, 2015 1 commit
-
-
Jan Tattermusch authored
-
- 03 Aug, 2015 3 commits
-
-
Jon Skeet authored
-
Jon Skeet authored
This seems remarkably little code, but it appears to work. I can add tests for invalid structs at some point, once the general approach is approved.
-
Jon Skeet authored
This is taking an approach of putting all the logic in JsonFormatter. That's helpful in terms of concealing the details of whether or not to wrap the value in quotes, but it does lack flexibility. I don't *think* we want to allow user-defined formatting of messages, so that much shouldn't be a problem.
-
- 31 Jul, 2015 2 commits
- 20 Jul, 2015 1 commit
-
-
Jon Skeet authored
First part of JSON formatting for well-known types. I think we need a reflection API rethink before doing the rest.
-
- 17 Jul, 2015 1 commit
-
-
Jon Skeet authored
We'll see what I've missed when CI fails...
-
- 10 Jul, 2015 2 commits