I am having trouble understanding the documentation for the JSONUpdater tool. I've put together a simple workspace (attached) that demonstrates my partial success. I want to create a GeoJSON file from a shapefile. I can successfully do this with FeatureWriter. So far so good. See screenshots 1. and 2. below.
Now I want to add a key-value pair to the root of the JSON object that would identify the edition of the collection -- as shown in screenshot 3. So I include the JSONUpdater transformer. as pictured in Screenshot 4. below. I've tried a lot of options in this transformer but nothing I do has any effect on the json file.
Can someone give me a hint?
Screenshot 1: Workbench diagram
Screenshot 2: FeatureWriter Parameters
Screenshot 3: Geojson I get.
Screenshot 4: GeoJSON I want.Screenshot 5: JSON Updater Parameters.