Thanks for the comment. I don't know about before. protostuff compiler
can auto generate a schema specifically for protobuf via compiler
option java_v2protoc_schema:
* complements the generated code from the official C++ protoc
compiler.
* allows the existing protoc-generated code to be efficiently
serialized to json.
For example,
Person person = Person.newBuilder()
.setName("John Doe")
.setMotto("Speed kills!")
.setGender(Gender.MALE)
.build();
boolean numeric;
OutputStream out;
JsonIOUtil.writeTo(out, person, SchemaFoo.Person.WRITE, numeric);
SchemaFoo is auto generated from the .proto file.
http://code.google.com/p/protostuff/wiki/JsonSerialization#java_v2protoc_schema