# Convert JSON Objects to DOUBLE or IPADDR Types Using DPL Rules

**URL:** <https://community.dynatrace.com/t/convert-json-objects-to-double-or-ipaddr-types-using-dpl-rules/48810>\
**Category:** DQL\
**Tags:** dql, dpl\
**Created:** [November 8, 2024, 3:42pm UTC](https://community.dynatrace.com/t/convert-json-objects-to-double-or-ipaddr-types-using-dpl-rules/48810 "2024-11-08T15:42:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mosharref\_hossn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mosharref_hossn/32/32184_2.png) [@mosharref\_hossn](https://community.dynatrace.com/u/mosharref_hossn)\
**Post date:** [November 8, 2024, 3:42pm UTC](https://community.dynatrace.com/t/convert-json-objects-to-double-or-ipaddr-types-using-dpl-rules/48810/1 "2024-11-08T15:42:44Z")

</div>

I have a log processing rule to capture the HTTP request header data.

I want the data type to be DOUBLE for request size values and IPADDR for IPs.

However, the data always gets parsed as STRING data type.

Any options to fix this issue for log ingest rules?

```python
PARSE(content, "JSON:jsoncontent")
| FIELDS_ADD(http.request.size:DOUBLE(jsoncontent[http_info][request_headers][request_size]))
| FIELDS_ADD(http.client_ip:IPADDR(jsoncontent[http_info][request_headers][X-Ruxit-Forwarded-For]))

```

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 17, 2025, 12:10pm UTC](https://community.dynatrace.com/t/convert-json-objects-to-double-or-ipaddr-types-using-dpl-rules/48810/2 "2025-12-17T12:10:29Z")

</div>

Hey&nbsp;[@mosharref\_hossn](https://community.dynatrace.com/user/65319)&nbsp;,  
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&nbsp;:blush:  
Please let me know what works best for you.
