# Perspective scan barcode action -split json format

**URL:** <https://forum.inductiveautomation.com/t/perspective-scan-barcode-action-split-json-format/53761>\
**Category:** Ignition\
**Tags:** ignition80, perspective, ignition81, scripting\
**Created:** [December 4, 2021, 11:26am UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action-split-json-format/53761 "2021-12-04T11:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vani161998](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vani161998](https://forum.inductiveautomation.com/u/vani161998)\
**Post date:** [December 4, 2021, 11:26am UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action-split-json-format/53761/1 "2021-12-04T11:26:34Z")

</div>

Hi,  
I have used scan barcode action and scanned a barcode. i got the data in json format. Can i know how to split this data.  
sample data:  
{“timestamp”:1638615738807.238,“barcodeType”:“datamatrix”,“text”:"[)\>\u101d06\u001d13V808883381\u001d1PSF,SZ2,RB41I ,265- x 947, \s001d1GY1H1715A1 \u001d16D20210813\u001d14D20250813\u001d\u001e05"}

From this format i need only the “barcodeType”.  
any solution will be very helpful. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [December 4, 2021, 1:27pm UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action-split-json-format/53761/2 "2021-12-04T13:27:47Z")

</div>

you can use data.barcodeType
