Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
We already have this in hand to a large extent. If you grab the latest source, 
you can use the ProtocolBuffers.Serialization assembly.

Original comment by jonathan.skeet on 26 Aug 2011 at 1:23

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Glad to hear it!  Are there any documents or mailing list threads that indicate 
how to generate a JSON transcoding with the same ease as using TextFormat?

Original comment by [email protected] on 26 Aug 2011 at 1:41

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
The tests are probably the best starting point:

http://code.google.com/p/protobuf-csharp-port/source/browse/src/ProtocolBuffers.
Test/TestWriterFormatJson.cs

Original comment by jonathan.skeet on 26 Aug 2011 at 1:45

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Here is brief overview of using JSON/XML:

1. Currently you need to download and build the source. Downloads dated after 
Aug 2011 should include this.
2. Add a reference to "Google.ProtocolBuffers.Serialization.dll"
3. Add a using statement for the namespace Google.ProtocolBuffers.Serialization
4. Call the extension methods IMessageLite.ToXml() or .ToJson() to write in 
that format
5. Call the builder extensions IBuilderLite.MergeFromXml(...) or 
.MergeFromJson(...) to read

Let me know if you need any more information.  Unless you need anything else 
this issue will be closed as Fixed.




Original comment by [email protected] on 10 Sep 2011 at 3:50

  • Changed state: Fixed
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Thanks for the details, Grigand!

Original comment by [email protected] on 11 Sep 2011 at 11:38

from protobuf-csharp-port.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.