Skip to main content
  • 10000+ Posts
  • 53,413 Replies
10000+ Posts
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

  • Online Training
    prathyushay8has earned the badge Online Training
  • Online Training
    ahmed_emamhas earned the badge Online Training
  • English Speaker
    crunchyd_12has earned the badge English Speaker
  • FME Form Advanced Training
    elbazhas earned the badge FME Form Advanced Training
  • English Speaker
    aliciadhas earned the badge English Speaker
Show all badges

Community Stats

32,488
Posts
123,403
Replies
40,673
Members