# JSON object value

**URL:** <https://community.dreamfactory.com/t/json-object-value/780>\
**Category:** REST API\
**Created:** [January 23, 2015, 6:04pm UTC](https://community.dreamfactory.com/t/json-object-value/780 "2015-01-23T18:04:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenzhao](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@chenzhao](https://community.dreamfactory.com/u/chenzhao)\
**Post date:** [January 23, 2015, 6:04pm UTC](https://community.dreamfactory.com/t/json-object-value/780/1 "2015-01-23T18:04:22Z")

</div>

I am experiencing exact same problem described below. what’s the solution?

> [@Get a JSON object from a MySQL text field](https://community.dreamfactory.com/t/get-a-json-object-from-a-mysql-text-field/636):
>
> Hi, my application has some text fields inside a MySQL database containing JSON objects. I want the REST-API to return them inline in the JSON response as native JSON. As the default, the API returns them as escaped strings, so that the API consumer has to JSON decode them on their own. Example given, this is what comes out of the API now: { "contact\_data": "[{\n \"type\": \"phone\",\n \"name\": \"Telefon\",\n \"value\": \"+49 321 123456\"\n},{\n \"type\": \"email\",\n \"name\": \"E-Ma…

Thanks,  
Zach

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [August 6, 2015, 7:56pm UTC](https://community.dreamfactory.com/t/json-object-value/780/2 "2015-08-06T19:56:14Z")

</div>

It was resolved in the linked topic with JSON.parse() and JSON.stringify().
