shushanxingzhe / json-template

Automatically exported from code.google.com/p/json-template
0 stars 0 forks source link

json data formte with metdata of object #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
how to achieve this output
{
  "response": {
    "header": { "res-code": "0" },
    "res-content": {
      "personal-profile": {
        "data-set": {
          "label": "Your Personal Profile",
          "nesting": "true",
          "data-item": [
            {
              "id": "first_name",
              "type": "text",
              "cardinality": "single",
              "label": "First Name",
              "value": "Anurag Sinha"
            },
            {
              "id": "photo",
              "type": "url/image",
              "cardinality": "single",
              "label": "Picture",
              "value": "{url to get the image from Webapp }"
            },
            {
              "id": "adm_num",
              "type": "text",
              "cardinality": "single",
              "label": "Admission Number",
              "value": "{value}"
            }

            ]
          }
        }
      }
    }
  }
}

using google gson 2.2.2

Please provide any additional information below.

Original issue reported on code.google.com by pushpend...@gmail.com on 8 Aug 2012 at 8:47

GoogleCodeExporter commented 8 years ago
how to send response above with object metadata

Original comment by pushpend...@gmail.com on 8 Aug 2012 at 8:50