# Converting Audit Log Values into JSON

**URL:** <https://forum.inductiveautomation.com/t/converting-audit-log-values-into-json/52564>\
**Category:** Ignition\
**Created:** [November 1, 2021, 1:51pm UTC](https://forum.inductiveautomation.com/t/converting-audit-log-values-into-json/52564 "2021-11-01T13:51:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 1, 2021, 1:51pm UTC](https://forum.inductiveautomation.com/t/converting-audit-log-values-into-json/52564/1 "2021-11-01T13:51:37Z")

</div>

I don’t suppose there’s a simple IA library function that converts values stored in the audit log into JSON? e.g. tag edit values.

```auto
TagEdit[path=[default]Testing/derived, removed=false, new=false, config=[{valueSource=derived, dataType=Int8, alarms={Alarm=Alarm}, name=derived, deadband=0.01, tagType=AtomicTag, engUnit=%}, boundProps=null], children=0]

```

→

```auto
{'path': '[default]Testing/derived',
 'removed': False:
 'config': {'valueSource': 'derived',...., 'boundProps': None},
 'children':0
}

```

I want to build a tool to better show changes in the system and getting this into JSON format is the first step…

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 1, 2021, 4:54pm UTC](https://forum.inductiveautomation.com/t/converting-audit-log-values-into-json/52564/2 "2021-11-01T16:54:40Z")

</div>

Once they go into the audit log, they’ve already been (lossily) converted to a string. For our code, we just deal with the raw Java objects directly. You’d have to parse this (liable to change) string format yourself, unfortunately…

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 1, 2021, 8:03pm UTC](https://forum.inductiveautomation.com/t/converting-audit-log-values-into-json/52564/3 "2021-11-01T20:03:18Z")

</div>

Thanks Paul. I've always wanted to look at making a parser so I guess this is a good time 😄

> [@paul-griffith](#):
>
> liable to change

Can I suggest changing it to json? 🙂
