# Creating percentages from responses

**URL:** <https://discourse.nodered.org/t/creating-percentages-from-responses/12097>\
**Category:** General\
**Created:** [12 June 2019 07:52 UTC](https://discourse.nodered.org/t/creating-percentages-from-responses/12097 "2019-06-12T07:52:56Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![graphicsop](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/graphicsop/32/8663_2.png) [@graphicsop](https://discourse.nodered.org/u/graphicsop)\
**Post date:** [12 June 2019 13:49 UTC](https://discourse.nodered.org/t/creating-percentages-from-responses/12097/19 "2019-06-12T13:49:21Z")

</div>

Below is what comes out of the Function node into the debug node.

object  
id: 484993  
content\_type: null  
object\_id: null  
response\_obj: object  
id: 227825  
pollresponse: 484993  
response: array[1]  
0: 42836  
response\_type: "choice"  
is\_active: true  
created: "2019-06-11T14:40:57.794723Z"  
updated: "2019-06-12T13:45:22.039299Z"  
anonymous\_id: null  
archive: null  
poll: 31754

It looks exactly the same as what comes out of the JSON node?

 ![Node-RED](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/431de87f58a00c70de469e02c83d599ad5a3a275.png)

---

_[View the full topic](https://discourse.nodered.org/t/creating-percentages-from-responses/12097)._
