apache nifi - parse json and load data to mongodb -
i having large json,the result paged in different files... unable parse below json files...and how load mongodb using nifi.
i need "resourcetype" : "patient","id" : "104","meta" : {"versionid" : "1","lastupdated" : "2016-09-19t10:18:45z"},"text" : {"status" : "generated","div" : "http://www.w3.org/1999/xhtml\">hughes, teresa. mrn: 577423"},"identifier" : [{"type" : {"coding" : [{"system" : "http://hl7.org/fhir/v2/0203","code" : "ss"}]},"system" : "https://github.com/projectcypress/cypress/patient","value" : "577423"}],"active" : true,"name" : [{"use" : "official","family" : ["hughes"],"given" : ["teresa"]}],"gender" : "female","birthdate" : "1988-05-22","managingorganization" : {"reference" : "organization/1"}},"search" : {"mode" : "match"}},{"fullurl" : "http://fhir2.healthintersections.com.au/open/patient/105" single record
you can use mergecontent
processor merge content of multiple flowfiles single flowfile (thus rebuilding single large json document multiple pages) , use putmongo
processor write mongodb.
you may interested in attributestojson
, splitjson
, jolttransformjson
, , evaluatejsonpath
perform further json-related parsing , transformation.
Comments
Post a Comment