Results 1 to 2 of 2

Thread: pls solve this

  1. #1
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default pls solve this

    Hello guys,

    Please suggest me to parse following string using json and javascript.

    { "form": { "name":"General GCH form", "fields":[ {"name":"field_id_2270", "label":"Your Full Name", "description":"Your first and last name", "type":"text field", "mandatory":"true", "attributes":["size":"40"]} , {"name":"field_id_2278", "label":"Number of places to reserve", "description":"How many are you registering for?", "type":"combo box", "mandatory":"true", "attributes":[]}
    ]}}

    I am new to this language and looking for code since one week.

    advanced thanks
    nagaraja kharvi

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    What exactly do you want to do? Do you want to parse that into an array?

    Please, always try google first:
    http://www.google.com/search?q=json+parse

    This looks helpful:
    http://www.json.org/js.htm

    This looks fun:
    http://json.parser.online.fr/
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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