Revision 9ed6d4da3710daae65cdc60719ebff79a472b648 authored by Jon Skeet on 28 September 2015, 16:28:02 UTC, committed by Jon Skeet on 01 October 2015, 12:07:47 UTC
This changes how we approach JSON formatting in general - instead of looking  at the field a value came from, we just look at the type of the value. It's possible this *could* be slightly inefficient, but if we start caring about JSON performance deeply, we'll probably want to rewrite all of this anyway. It's definitely simpler this way.

When we support dynamic messages, we'll need to modify JsonFormatter to handle enum values, as they won't come be "real" .NET enums at that point. It shouldn't be hard to do though.
1 parent ebf3eb6
History
File Mode Size
benchmarks
cmake
conformance
csharp
editors
examples
java
javanano
m4
more_tests
objectivec
protoc-artifacts
python
ruby
src
.gitignore -rw-r--r-- 1.9 KB
.travis.yml -rw-r--r-- 1.5 KB
BUILD -rw-r--r-- 19.5 KB
CHANGES.txt -rw-r--r-- 43.9 KB
CONTRIBUTORS.txt -rw-r--r-- 3.8 KB
INSTALL.txt -rw-r--r-- 9.3 KB
LICENSE -rw-r--r-- 2.1 KB
Makefile.am -rw-r--r-- 49.1 KB
Protobuf.podspec -rw-r--r-- 2.1 KB
README.md -rw-r--r-- 6.6 KB
WORKSPACE -rw-r--r-- 360 bytes
appveyor.bat -rw-r--r-- 799 bytes
appveyor.yml -rw-r--r-- 805 bytes
autogen.sh -rwxr-xr-x 983 bytes
configure.ac -rw-r--r-- 5.6 KB
generate_descriptor_proto.sh -rwxr-xr-x 3.1 KB
gmock.BUILD -rw-r--r-- 535 bytes
post_process_dist.sh -rwxr-xr-x 1.8 KB
protobuf-lite.pc.in -rw-r--r-- 298 bytes
protobuf.pc.in -rw-r--r-- 319 bytes
travis.sh -rwxr-xr-x 5.0 KB
update_file_lists.sh -rwxr-xr-x 5.9 KB

README.md

back to top