Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Posts
    13
    Rep Power
    0

    Default DB Values to JSON

    Hi

    I have tried to create json from mine Database values which have country id and country name,am forming hashmap from db then converting hashmap to jsonobject but its not working ie required format is not coming and not able to parse in javascript,please help me out of this by providing some code or suggestions

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,679
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by prakashkadakol View Post
    Hi

    I have tried to create json from mine Database values which have country id and country name,am forming hashmap from db then converting hashmap to jsonobject but its not working ie required format is not coming and not able to parse in javascript,please help me out of this by providing some code or suggestions
    Why do you keep on asking Javascript questions in a Java forum? Javascript is not Java; we can't help you here.

    kind regards,

    Jos

Similar Threads

  1. hashmap to json
    By prakashkadakol in forum New To Java
    Replies: 5
    Last Post: 07-30-2011, 02:32 AM
  2. JSON Parsing
    By prakashkadakol in forum New To Java
    Replies: 1
    Last Post: 01-04-2010, 08:13 PM
  3. JSON from javascript to java servlet
    By boss-tech in forum Java Servlet
    Replies: 1
    Last Post: 09-18-2009, 09:27 AM
  4. Replies: 0
    Last Post: 05-22-2008, 11:53 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
  •