# How to decode an OPC tag to have useable data

**URL:** <https://forum.inductiveautomation.com/t/how-to-decode-an-opc-tag-to-have-useable-data/85593>\
**Category:** Ignition\
**Created:** [February 12, 2024, 9:37pm UTC](https://forum.inductiveautomation.com/t/how-to-decode-an-opc-tag-to-have-useable-data/85593 "2024-02-12T21:37:22Z")\
**Posts on this page:** 2\
**Page:** 2

<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:** [February 13, 2024, 5:50pm UTC](https://forum.inductiveautomation.com/t/how-to-decode-an-opc-tag-to-have-useable-data/85593/21 "2024-02-13T17:50:38Z")

</div>

Consider writing the decoded JSON (which is then a jython dictionary or list of dictionaries) to a memory tag of type `Document`. They you can use a variety of expression functions in user interfaces or in other expression tags to extract the named contents.

---

<div class="post-metadata">

**Author:** ![The\_Bit\_Plumber](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/the_bit_plumber/32/58166_2.png) [@The\_Bit\_Plumber](https://forum.inductiveautomation.com/u/The_Bit_Plumber)\
**Post date:** [February 13, 2024, 8:03pm UTC](https://forum.inductiveautomation.com/t/how-to-decode-an-opc-tag-to-have-useable-data/85593/22 "2024-02-13T20:03:39Z")

</div>

I was thinking I would try to create a SQLlite DB in a transaction group, and the app would query the DB to search for the info. That way we can have a log of the tags detected. In case an item goes missing we will have the ability to see the "Last known location" with a timestamp in a DB. I don't exactly know how to do this but that was the general idea. Could you expound on what you were describing further?

[Previous page](https://forum.inductiveautomation.com/t/how-to-decode-an-opc-tag-to-have-useable-data/85593.md?page=1)
