aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken testJon Skeet2016-01-151-1/+1
|
* Change handling of unknown enums: we now write out the value as a number.Jon Skeet2016-01-151-11/+8
|
* Extra strictness for FieldMask conversionJon Skeet2016-01-151-0/+10
|
* Fixes to JSON timestamp/duration representationsJon Skeet2016-01-151-3/+25
|
* Prohibit null values in map fieldsJon Skeet2016-01-111-7/+0
| | | | | On deserialization, missing values for message types are replaced with a "default" message.
* Ensure all formatted well-known-type values are valid JSONJon Skeet2016-01-061-17/+24
| | | | | | | This involves quoting timestamp/duration/field-mask values, even when they're not in fields. It's better for consistency. Fixes issue #1097.
* JSON formatting for Any.Jon Skeet2015-12-021-0/+42
|
* Implement JSON parsing in C#.Jon Skeet2015-11-031-6/+21
| | | | | | | | | | 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.
* remove duplicate test caseJan Tattermusch2015-08-141-1/+0
|
* JSON formatting for FieldMaskJon Skeet2015-08-031-0/+18
|
* Initial pass at formatting Struct as JSON.Jon Skeet2015-08-031-0/+17
| | | | 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.
* Format JSON for Duration and Timestamp.Jon Skeet2015-08-031-0/+61
| | | | 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.
* Simplify the JSON tests for readabilityJon Skeet2015-07-311-60/+71
| | | | Use ' instead of " in the expected JSON, then replace it before asserting.
* Fix JSON formatting to always emit fields in field order, including oneofsJon Skeet2015-07-311-0/+25
|
* First part of JSON formatting for well-known types. I think we need a ↵Jon Skeet2015-07-201-0/+27
| | | | reflection API rethink before doing the rest.
* First pass at the big rename from ProtocolBuffers to Google.Protobuf.Jon Skeet2015-07-171-0/+261
We'll see what I've missed when CI fails...