# Specify Duration Time Literals When Parsing JSON with DQL

**URL:** <https://community.dynatrace.com/t/specify-duration-time-literals-when-parsing-json-with-dql/46739>\
**Category:** DQL\
**Tags:** dql, notebooks\
**Created:** [July 22, 2024, 3:40pm UTC](https://community.dynatrace.com/t/specify-duration-time-literals-when-parsing-json-with-dql/46739 "2024-07-22T15:40:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![strudeau](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@strudeau](https://community.dynatrace.com/u/strudeau)\
**Post date:** [July 22, 2024, 3:40pm UTC](https://community.dynatrace.com/t/specify-duration-time-literals-when-parsing-json-with-dql/46739/1 "2024-07-22T15:40:22Z")

</div>

Hello, I am attempting to parse the following json:

```javascript
{"ResultCode": "Ok",
"DurationMs": "450.1132",
"PerformanceBucket": "250ms-500ms"}

```

I use the following DQL in my notebook:

```markup
fetch logs
| parse content, "JSON{STRING:ResultCode, STRING:PerformanceBucket, DURATION:DurationMs}:parsedContent"

```

How can I specify that the Duration is in milliseconds instead of nanoseconds (which is the default)? It looks like the DURATION datatype doesn’t allow to pass a duration time literals argument…

Thanks

[DQL data types - Dynatrace Docs](https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/data-types#duration)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 29, 2025, 3:22pm UTC](https://community.dynatrace.com/t/specify-duration-time-literals-when-parsing-json-with-dql/46739/2 "2025-09-29T15:22:24Z")

</div>

can you add in mathematical operators to take your nano and multiply it by 1,000,000?

nanoseconds = (5 ms × 1,000,000) = 5,000,000 ns
