Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    Good post, this is the most current way to do it. Commented May 30, 2016 at 13:33
  • 1
    I guess one expects to find a unit test under "The test" section, whereas there is none. btw, I like the approach where the Contact object knows how to convert itself to JSON. What I don't like in this example, is that the object is not actually an object from OOP perspective, rather than just bunch of public methods and properties. Commented Mar 13, 2021 at 16:41
  • "com.blogspot.jeanjmichel.jsontest.main" Ah, a Java programmer falls to the dark side. Welcome. We have cookies. Commented Jun 7, 2021 at 23:56
  • Hahahahaha yes @Corey =) Commented Jun 23, 2021 at 13:53