# Extract JSON object from an URL

**URL:** <https://discourse.nodered.org/t/extract-json-object-from-an-url/58949>\
**Category:** General\
**Tags:** function-node\
**Created:** [24 February 2022 19:56 UTC](https://discourse.nodered.org/t/extract-json-object-from-an-url/58949 "2022-02-24T19:56:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DemalCal96](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DemalCal96](https://discourse.nodered.org/u/DemalCal96)\
**Post date:** [24 February 2022 19:56 UTC](https://discourse.nodered.org/t/extract-json-object-from-an-url/58949/1 "2022-02-24T19:56:28Z")

</div>

Hello everyone. Actually I have an URL address provided by a system engineer that extract data from a data base. when I put this URL in my web Brawser I can see the following:

 ![cc](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/95614afbf9986d89d39a143c4abcf247cb250200.png)

This is a JSON object that I want to be able to use in node-red, but I'm not sure how. Please if someone has an idea!!!

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [24 February 2022 20:11 UTC](https://discourse.nodered.org/t/extract-json-object-from-an-url/58949/2 "2022-02-24T20:11:11Z")

</div>

Try a HTTP Request node with the method set to GET.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 February 2022 20:48 UTC](https://discourse.nodered.org/t/extract-json-object-from-an-url/58949/3 "2022-02-24T20:48:36Z")

</div>

... and set to return a parsed json object

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/9/f9cd77984459c8d871e12cee044cbc66ed550953.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 February 2022 21:35 UTC](https://discourse.nodered.org/t/extract-json-object-from-an-url/58949/4 "2022-02-24T21:35:05Z")

</div>

> [@DemalCal96](#):
>
> This is a JSON object that I want to be able to use in node-red, but I'm not sure how. Please if someone has an idea

Hi, firstly, "JSON object" is a misnomer. JSON stands for JavaScript Object Notation. In other words, it is a string representation of a JavaScript object. The distinction is important if you wish to become proficient.

Ok, so to do a GET request for JSON data, see [this example in the cookbook](https://cookbook.nodered.org/http/parse-json-response)

---

<div class="post-metadata">

**Author:** ![DemalCal96](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DemalCal96](https://discourse.nodered.org/u/DemalCal96)\
**Post date:** [24 February 2022 22:25 UTC](https://discourse.nodered.org/t/extract-json-object-from-an-url/58949/5 "2022-02-24T22:25:30Z")

</div>

thanks for the clarification, I appreciate it very much, especially since you were not rude. I will check the source you shared with me, thank you 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 March 2022 22:26 UTC](https://discourse.nodered.org/t/extract-json-object-from-an-url/58949/6 "2022-03-10T22:26:00Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
