I'm trying to use https://github.com/jsonurl/jsonurl-js to achieve this. I've tried the following code but I keep getting the result of 23.
I would like to store all values of test in testJSON and access each individual item by its index.
const test = (1, 2, 3, 23);
const testJSON = JsonURL.parse(test);
console.log(testJSON[2])
<script src="https://cdn.jsdelivr.net/npm/@jsonurl/jsonurl@1.1.5" integrity="sha512-PgDMK2pu/5iHU+sUvfCWIKugVg2NLSN1jmQJyJKbQw1MZAMvrU7XX3fPv4FJXgGBxTCsDnjhMmlZK5pzgPndTQ==" crossorigin="anonymous"></script>