# How to read the response json in python template

**URL:** <https://discourse.nodered.org/t/how-to-read-the-response-json-in-python-template/64086>\
**Category:** General\
**Tags:** http-request\
**Created:** [17 June 2022 18:45 UTC](https://discourse.nodered.org/t/how-to-read-the-response-json-in-python-template/64086 "2022-06-17T18:45:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANANYANAYAN](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ananyanayan/32/63423_2.png) [@ANANYANAYAN](https://discourse.nodered.org/u/ANANYANAYAN)\
**Post date:** [17 June 2022 18:45 UTC](https://discourse.nodered.org/t/how-to-read-the-response-json-in-python-template/64086/1 "2022-06-17T18:45:49Z")

</div>

I am completely new to Node-red. I have been trying to figure out how to simply read the json response, i.e msg.payload from a http request into a python script. Below is my flow.  
Could anyone please help me out?

 ![Screenshot from 2022-06-18 00-20-37](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad3a5788c641beaaf36048ee1f921d121ee77929.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [19 June 2022 12:32 UTC](https://discourse.nodered.org/t/how-to-read-the-response-json-in-python-template/64086/2 "2022-06-19T12:32:36Z")

</div>

Have you tried running the msg thru the `json` node?  
Also you should provide an export of your flow since no one can see you settings or function code.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

<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:** [18 August 2022 12:33 UTC](https://discourse.nodered.org/t/how-to-read-the-response-json-in-python-template/64086/3 "2022-08-18T12:33:25Z")

</div>

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