# Accesing value on a JSON

**URL:** <https://forum.robotframework.org/t/accesing-value-on-a-json/6999>\
**Category:** Robot Framework\
**Created:** [13 March 2024 20:14 UTC](https://forum.robotframework.org/t/accesing-value-on-a-json/6999 "2024-03-13T20:14:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/rafael/32/1832_2.png) [@rafael](https://forum.robotframework.org/u/rafael)\
**Post date:** [13 March 2024 20:14 UTC](https://forum.robotframework.org/t/accesing-value-on-a-json/6999/1 "2024-03-13T20:14:07Z")

</div>

Hello everyone! how are you doing?  
I’m facing a problem again! haha.  
I need to access some data into a json response of an API I’m testing but I just can’t do that… I have been trying to do that all day long but it seens not to be accessible. For sure it is something I’m missing.

I’m returning the jason this way… `Return From Keyword ${POST.json()['dados']}` but I have tried in many many different ways including `$.dados` but it just doesn’t works…

The response I get from the API and I can return to the test is:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/8/8bec87af2f9528d2403dac739ea17e2590ccc100.png)

From this point on, I can’t access anything…

Could someone help me pls?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Many](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/many/32/658_2.png) [@Many](https://forum.robotframework.org/u/Many)\
**Post date:** [13 March 2024 21:30 UTC](https://forum.robotframework.org/t/accesing-value-on-a-json/6999/2 "2024-03-13T21:30:09Z")

</div>

Hi Rafael,

Which library are you using? Requests Library or RestInstance?

Here is an example for requests library

> <https://github.com/manykarim/welcome-robotframework/blob/main/tests/booker/restful_booker.robot>

The syntax for requests library is  
${response.json()}[key]
