You want to return the JSON response of an HTTP request as a parsed Javascript object.
The HTTP Request
node will return the body of a JSON response in the msg.payload
as a string by default.
Change the Return
configuration of this node to a parsed JSON object
to parse the JSON response in the msg.payload
that
can be easily accessed by downstream nodes.
We have reconfigured the flow from the Set the URL of a Request URL recipe
by changing the HTTP Request
node configuration. The Debug
node has been modified to display only the title
property of the parsed JSON response:
"qui est esse"
If your HTTP request returns XML, the XML
node can be used to parse Javascript objects from XML documents.
Node-RED: Low-code programming for event-driven applications.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List | Cookie Policy