Results 1 to 2 of 2
  1. #1
    jeffwang66 is offline Member
    Join Date
    Oct 2014
    Posts
    1
    Rep Power
    0

    Default Convert Json Format

    I have a json file with the content:

    {
    "id" : 10,
    "name" : "book1",
    "user" : "john",
    "chapters" : [
    {
    "chaptername" : "chapter1",
    "content" : "index"
    }
    ]
    }
    I want to convert it with a nice format (e.g. tree format or table). Does any know some good java packages for it?

    Thanks

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Convert Json Format

    I have not used this, but check out this link ->Java API for JSON Processing and go to the
    bottom of the page for some other useful links.

    Also, I believe that JSON support will be offered in Java 9 as part of the JDK.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Convert JSON string to HashMap in Java
    By anjibman in forum New To Java
    Replies: 9
    Last Post: 09-12-2014, 09:14 AM
  2. convert xml to JSON using XPath dynamically
    By blertadhimitri in forum New To Java
    Replies: 2
    Last Post: 11-17-2013, 01:40 PM
  3. How to convert xml to json using JSONWriter?
    By blertadhimitri in forum New To Java
    Replies: 3
    Last Post: 11-08-2013, 02:13 PM
  4. could not convert the xml to json using java
    By cgk_js in forum Advanced Java
    Replies: 0
    Last Post: 11-30-2012, 09:31 AM
  5. convert html to json
    By nigina in forum New To Java
    Replies: 3
    Last Post: 09-22-2011, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •