Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Nifi InvokeHttp POST sent object of objects as request body

avatar
New Contributor

Hello,

I am trying to make an InvokeHttp (in ApacheNifi 1.25.0) and i would like to make a Post request with this body:
 

 

 

{
  "dummy" : {
    "value" : "C",
    "type" : "Property"
  },
  "loc" : {
    "type" : "property",
    "value" : {
      "coordinates" : [ 111.3, 222.1],
      "type" : "Point"
    }
  },
  "te" : "oall",
  "@dummy" : [ "linkd" ], 
  "id" : "idhere" 
}

 

 

I have  Request body Enable = true in invokeHttp but nothing happend.

I have tried to use evaluateJsonPath for each variable and attributesToJson proccessor but it only sents the single line variables (id and te).
Can you provide me some help please?

2 REPLIES 2

avatar
Community Manager

@jkkk, Welcome to our community! To help you get the best possible answer, I have tagged our NiFi experts @MattWho @SAMSAL @cotopaul  who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar

Hi @jkkk ,

Can you please post screenshots  of the configurations of the  the InvokeHttp processor and upstream processor\s that creates the json? Also since you mentioned that you are using the evaluateJsonPath  processor make sure that the Destination property is set to flowfile-attribute and not flowfile-content.