You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Joao Boto (JIRA)" <ji...@apache.org> on 2014/11/12 14:58:33 UTC

[jira] [Created] (METAMODEL-96) complex JSON table mapping

Joao Boto created METAMODEL-96:
----------------------------------

             Summary: complex JSON table mapping
                 Key: METAMODEL-96
                 URL: https://issues.apache.org/jira/browse/METAMODEL-96
             Project: Metamodel
          Issue Type: New Feature
            Reporter: Joao Boto


when we have a complex json like:
a customer that has a list of properties, each property have a list of descriptions and a list of images, in addition to another objects.

would be interesting to be able to map it as if it has to do with the xml.
here the sample:
https://wiki.apache.org/metamodel/examples/XmlTableMapping

{code}
{
  "custumerCode": "xpto",
  "listing": [
      {
        "propertyCode": "1",
        "propertyReference": "1-1",
        "address" : {
        	"streetname": "plaza de las cortes"
        },
        "images" : [
                    { "url": "http://somefoto1.jpg", "tag": "bath"},
                    { "url": "http://somefoto2.jpg", "tag": "kitchen"}
        ],
        "descriptions" : [
                    { "language" : "en", "comment": "some text"},
                    { "language" : "de", "comment": "another text"}
        ]
      },
      {
          "propertyCode": "2",
          "propertyReference": "2-2",
          "address" : {
          	"streetname": "plaza de las cortes"
          },
          "images" : [
                      { "url": "http://somefoto1.jpg", "tag": "bath"},
                      { "url": "http://somefoto2.jpg", "tag": "kitchen"}
          ],
          "descriptions" : [
                      { "language" : "en", "comment": "some text"},
                      { "language" : "de", "comment": "another text"}
          ]
        }
  ]
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)