Skip to main content
  • 10000+ Posts
  • 53,363 Replies
10000+ Posts
json output remove top levels

Hi, I have created some JSON in FME but would like to remove the first couple of levels.At the moment I have:[    {        "output" : {            "status" : "200",            "body" : [                {                    "well_id" : 25325,                    "well_name" : "MYALL_CREEK_3",                    "latitude" : -27.046011,                    "longitude" : 149.236806                },                {etcideally I would like to remove the "output" level[    {            "status" : "200",            "body" : [                {                    "well_id" : 25325,                    "well_name" : "MYALL_CREEK_3",                    "latitude" : -27.046011,                    "longitude" : 149.236806                },                {Could you please tell me how to achieve this.

how to write JSON Array of Objects to the MongoDB Writer when the number of Json objects in the array are not fixed

The MongoDB Writer for fme currently does not support writing to the MongoDB array data type. I am trying to develop a workflow in fme that can write to a JSON array data type in MongoDB when the number of objects in a json array are not fixed, for example (see "alternateNames array"):{    "geonameId" : 3,    "name" : Toronto,    "alternateNames" : [         {        "alternateName" : "Toronto",            "isoLanguage" : "af"        },         {            "alternateName" : "Toronto",            "isoLanguage" : "fa"        }    ]} in another record from the source, this "alternateNames" array might be contain more objects:{    "geonameId" : 1859924,    "name" : Kashiwa,    "alternateNames" : [         {        "alternateName" : "Kashiwa",            "isoLanguage" : "eng"

Badge Winners

  • FME Flow Certified Professional
    mtroxlerfmehas earned the badge FME Flow Certified Professional
  • Welcome Back
    texldshas earned the badge Welcome Back
  • Online Training
    gb444+has earned the badge Online Training
  • FME Certified Professional
    aspkinhas earned the badge FME Certified Professional
  • Student (Grey)
    susanwinchell27has earned the badge Student (Grey)
Show all badges

Community Stats

32,405
Posts
123,161
Replies
40,511
Members