Hi @salvaleonrp, in this case, I think you can apply the dynamic workflow approach described in Dynamic Workflows: Destination Schema is Derived from a Schema Feature. That is, create schema definition (attribute{}.name, attribute{}.fme_data_type) from the JSON "fields" array. You can then merge the list to every feature unconditionally in order to configure dynamic writer feature type.
See also the attached workspace example: schema-from-json-array.fmwt (FME 2019.2.3.1)
Note: the original format of "creationdate" seems to be milliseconds since UNIX epoch, so you will have to expose it and convert the format to an appropriate date/time format for the destination data format.
@takashi I really appreciate the help. That's awesome! Thanks!
I'm a bit late to the party, but is this possibly some ESRI-flavored JSON? What happens if you try reading it with the "Esri-JSON (Esri JavaScript Object Notation)" reader?
I'm a bit late to the party, but is this possibly some ESRI-flavored JSON? What happens if you try reading it with the "Esri-JSON (Esri JavaScript Object Notation)" reader?
It is a json response to a ArcGIS Server capability called Export Subnetwork.
I used the ESRI-JSON format reader but all it does is flatten the features array into attributes- which does it very well. However, I need to use another array in the same json called "fields" for sourceMapping actual values of the features' attributes, e.g. fromnetworksourceid --> sourceAlias; layerId --> featureLayerName.
Also, my Json Url queries have a lot of parameters to make it practical to use the ESRI-JSON reader.
Newer references for ESRI JSON below.
https://developers.arcgis.com/rest/services-reference/output-formats.htm
https://www.json.org/json-en.html
Thanks for your response @david_r.