Functions on the QR Code/Barcode Result

Functions on the QR Code/Barcode Result

Hi,

I would like to read a QR Code and if it has different variables only use what I require.

So if the result of the QR Code is: {"var1":"value1","var2":"value2"} and I just want the "value2" part then a mid and length function would be required.

And on Barcodes, again say the result is "123456789 10" and I just want the first 5 digits or anything before the space I would like to be able to use a length function.

Thanks

Dan