1. 19 Dec, 2017 1 commit
  2. 12 Nov, 2017 1 commit
  3. 24 Mar, 2017 1 commit
  4. 28 Feb, 2017 1 commit
  5. 03 Nov, 2016 1 commit
    • Jon Skeet's avatar
      Change JSON field name formatting · 50a37e01
      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.
      50a37e01
  6. 27 Jul, 2016 2 commits
  7. 23 Jun, 2016 1 commit
  8. 11 May, 2016 1 commit
  9. 29 Apr, 2016 1 commit
  10. 20 Apr, 2016 1 commit
  11. 01 Apr, 2016 1 commit
  12. 20 Jan, 2016 1 commit
    • Jon Skeet's avatar
      Ensure that FieldMask, Timestamp and Duration ToString() calls don't throw · dd43dcca
      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.
      dd43dcca
  13. 15 Jan, 2016 4 commits
  14. 11 Jan, 2016 1 commit
  15. 06 Jan, 2016 1 commit
  16. 02 Dec, 2015 1 commit
  17. 03 Nov, 2015 1 commit
    • Jon Skeet's avatar
      Implement JSON parsing in C#. · fb248822
      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.
      fb248822
  18. 14 Aug, 2015 1 commit
  19. 03 Aug, 2015 3 commits
    • Jon Skeet's avatar
      JSON formatting for FieldMask · 0e30de3d
      Jon Skeet authored
      0e30de3d
    • Jon Skeet's avatar
      Initial pass at formatting Struct as JSON. · e7caf155
      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.
      e7caf155
    • Jon Skeet's avatar
      Format JSON for Duration and Timestamp. · 16e272e0
      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.
      16e272e0
  20. 31 Jul, 2015 2 commits
  21. 20 Jul, 2015 1 commit
  22. 17 Jul, 2015 1 commit
  23. 10 Jul, 2015 2 commits