bivas / protobuf-java-format

Provide serialization and de-serialization of different formats based on Google’s protobuf Message. Enables overriding the default (byte array) output to text based formats such as XML, JSON and HTML.
BSD 3-Clause "New" or "Revised" License
153 stars 97 forks source link

Examples refer to non-static methods #17

Closed pires closed 8 years ago

pires commented 8 years ago

JsonFormat.printToString(...) is not static so the examples don't work.

pires commented 8 years ago

The following doesn't work either. Not only merge(...) isn't static but it doesn't accept String as argument.

String jsonFormat = _load json document from a source_;
JsonFormat.merge(jsonFormat, builder);
bivas commented 8 years ago

Addressed by pull request #18