Feature Request: API Channel JSON nesting

For channels, the level of expression using XML enables much more articulation when it comes to nested objects that inherit values from the product.

It would be extremely helpful if we could express the JSON document to a similar extent as XML in order to clearly articulate hierarchical data. 

Current channel output example:
{
  "GalleryImages.Image.URL": [
    "100311224_9638457532.jpg",
    "100311224_2198121312.jpg"
  ],
  "GalleryImages.Image.Id": [
    "63992971",
    "63992972"
  ],
  "GalleryImages.Image.Pos": [
    "1",
    "2"
  ],
  "GalleryImages.Image.IsMain": [
    "Y",
    "N"
  ],
  "Multimedia.Media.URL": "mmo_100311224_1662385800_3817_23112.pdf",
  "Multimedia.Media.Type": "leaflet",
  "Multimedia.Media.ContentType": "application/pdf",
  "Multimedia.Media.Desc": "Product Brochure",
  "FeatureLogos.Logo.URL": [
    "8-2276.png",
    "599-337.png"
  ],
  "FeatureLogos.Logo.Value": [
    "RoHS",
    "CE"
  ],
  "FeatureLogos.Logo.Pos": [
    null,
    "1"
  ]
}


Future channel output example:
{
  "Assets": {
    "GalleryImages": {
      "Image": [
        {
          "URL": "100311224_9638457532.jpg",
          "Id": "63992971",
          "Pos": "1",
          "IsMain": "Y"
        },
        {
          "URL": "100311224_2198121312.jpg",
          "Id": "63992972",
          "Pos": "2",
          "IsMain": "N"
        }
      ]
    },
    "Multimedia": {
      "Media": {
        "URL": "mmo_100311224_1662385800_3817_23112.pdf",
        "Type": "leaflet",
        "ContentType": "application/pdf",
        "Desc": "Product Brochure"
      }
    },
    "FeatureLogos": {
      "Logo": [
        {
          "URL": "8-2276.png",
          "Value": "RoHS"
        },
        {
          "URL": "599-337.png",
          "Value": "CE",
          "Pos": "1"
        }
      ]
    }
  }
}

0

Comments

1 comment
Date Votes

Please sign in to leave a comment.

  • Official comment

    Hi Colin

    I have fired this across to our support team to create a Feature Request 

    We will keep you updated with any advancements.

    Thanks, 

    Jess

Didn't find what you were looking for?

New post