# Formatting response

**URL:** <https://discuss.elastic.co/t/formatting-response/218146>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 6, 2020, 10:42am UTC](https://discuss.elastic.co/t/formatting-response/218146 "2020-02-06T10:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malik\_aditya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/malik_aditya/32/45618_2.png) [@malik\_aditya](https://discuss.elastic.co/u/malik_aditya)\
**Post date:** [February 6, 2020, 10:42am UTC](https://discuss.elastic.co/t/formatting-response/218146/1 "2020-02-06T10:42:34Z")

</div>

Hi  
I'm trying to get data directly via API call. Is there any way to format result field. Like

currently:-

"fieldName": {  
"raw": "value"  
}

to:-

"fieldName":"value"

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 6, 2020, 11:18am UTC](https://discuss.elastic.co/t/formatting-response/218146/2 "2020-02-06T11:18:23Z")

</div>

Hi @malik_aditya,

There is no feature of App Search that would let you do this, but you should be able to do this yourself after you receive the API response.

Jason

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 5, 2020, 11:26am UTC](https://discuss.elastic.co/t/formatting-response/218146/3 "2020-03-05T11:26:00Z")

</div>

Closed on March 5, 2020, 11:26am UTC

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