# How to search for values from JSON formatted content?

**URL:** <https://discuss.elastic.co/t/how-to-search-for-values-from-json-formatted-content/257809>\
**Category:** Elasticsearch\
**Created:** [December 7, 2020, 7:33am UTC](https://discuss.elastic.co/t/how-to-search-for-values-from-json-formatted-content/257809 "2020-12-07T07:33:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [December 7, 2020, 7:33am UTC](https://discuss.elastic.co/t/how-to-search-for-values-from-json-formatted-content/257809/1 "2020-12-07T07:33:26Z")

</div>

There is such a field in my data. I want to search for a string, such as '1612011230036'. How can I search ?

> ```
> {
> "_source": {
> "http": {
> "request": {
> "body": {
> "original": "{\"productSN\":\"1612011230036\",\"productName\":\"XXX\",\"enduserName\":\"XXX\",\"enduserContact\":\"123456\",\"enduserAddress\":\"CXXXX\",\"distributorContact\":\"123456\",\"distributorAccountNumber\":\"2249722\",\"installTime\":\"2020-12-07\",\"enduserCountryId\":\"551973eb-983f-e711-80c9-005056bab658\",\"enduserProvinceId\":\"720cb377-993f-e711-80cb-005056bae90b\",\"enduserCityId\":\"671099ec-9c3f-e711-80c9-005056bab658\",\"enduserCountyId\":\"7853412e-a03f-e711-80c9-005056bab658\",\"accessories\":[\"731b1364-aecd-44f1-b65a-08d88bb0bd2b\"],\"installPhotos\":[\"c7872423-066e-4450-b65b-08d88bb0bd2b\"],\"distributorName\":\"XXX\"}"
> }
> }
> }
> 
> ```

---

<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:** [January 4, 2021, 7:33am UTC](https://discuss.elastic.co/t/how-to-search-for-values-from-json-formatted-content/257809/2 "2021-01-04T07:33:32Z")

</div>

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