get an array from js convert to json code example Example: how to convert json to javascript object local storage JSON.parse