Skip to main content

Hello there,

 

I feel like this should be incredible simple, but I feel like I am banging my head against a wall. 

 

I am trying to update the name value in this JSON, ‘cp2regions’ to ‘new_name’ for example:

 

{
  "featureType": {
    "name": "cp2regions",
    "nativeName": "cp2regions"}

}

 

 Using this this workbench;

Set up like this :

 

I can’t seem to find a good tutorial/example workbench on how this Transform works.

 

Many Thanks!

Looks like you are missing a connection there for the information to perform the update. You also can remove the last part of the JSON Path which is referenced in the Object/Array Index section.

Attached is a sample workspace where I took your input json txt and updated it using a feature with an attribute for the new name.

Here is some documentation: JSONUpdater (safe.com)


Reply