rchueh

Create a feature from JSON feed with array of attributes

Discussion created by rchueh on Jan 30, 2017
Latest reply on Sep 3, 2018 by jpdeboosesrifrance-fr-esridist

Is it possible to add/update feature class from a JSON feed below:

 

{
   "cars": [{
      "manufacturer": "Honda",
      "attribute": [{
            "Label": "Name",
            "value": "Accord"
         }, {
            "Label": "Year",

            "value": 2007
         }, {
            "Label": "Weight",
            "value": 3000
         }]
      }, {

         "manufacturer": "Toyota",
         "attribute": [{
            "Label": "Name",
            "value": "Camery"
          }, {
            "Label": "Year",
            "value": 2010
         }, {
            "Label": "Passengers",
            "value": 5
         }]
    }]
}

 

A GeoEvent definition was created after I created an Input connector consuming the JSON.

 

How do I map this GeoEvent so that I can update to a Feature Class through a feature service with fields: Manufacturers, Name, Year, Weight, Passengers?

 

Thanks

Outcomes