# jsonGet() expression function doesn't work with leading numbers in path segments

**URL:** <https://forum.inductiveautomation.com/t/jsonget-expression-function-doesnt-work-with-leading-numbers-in-path-segments/112907>\
**Category:** Ignition\
**Created:** [December 19, 2025, 2:40am UTC](https://forum.inductiveautomation.com/t/jsonget-expression-function-doesnt-work-with-leading-numbers-in-path-segments/112907 "2025-12-19T02:40:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.stonier](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@michael.stonier](https://forum.inductiveautomation.com/u/michael.stonier)\
**Post date:** [December 19, 2025, 2:40am UTC](https://forum.inductiveautomation.com/t/jsonget-expression-function-doesnt-work-with-leading-numbers-in-path-segments/112907/1 "2025-12-19T02:40:21Z")

</div>

jsonGet() expression function doesn't work with leading numbers in path segments.  
In this demonstration expression below, neither "item.0" or "item.0L" work. "item.L0" does.

> jsonGet("{'item':{'first':1, 'second':2, '0':3, '0L':4, 'L0':5}}", "item.L0")

Equivalent addressing via scripting works fine though:

> test = {'item':{'first':1, 'second':2, '0':3, '0L':4, 'L0':5}}  
> print test['item'][str(0)]  
> print test['item']['0']  
> print test['item']['0L']

Each of those works as expected.  
Tested in 8.3.2 (b2025120210) for reference.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 19, 2025, 3:06am UTC](https://forum.inductiveautomation.com/t/jsonget-expression-function-doesnt-work-with-leading-numbers-in-path-segments/112907/2 "2025-12-19T03:06:59Z")

</div>

Because it isn't valid JSON. Those keys are valid for jython dictionaries, but not jython attributes.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 19, 2025, 3:30am UTC](https://forum.inductiveautomation.com/t/jsonget-expression-function-doesnt-work-with-leading-numbers-in-path-segments/112907/3 "2025-12-19T03:30:42Z")

</div>

> [@michael.stonier](#):
>
> neither "item.0" or "item.0L" work. "item.L0" does.

Use `item['0']` and `item['0L']`.
