I am simply using JSON.parse in node.js for a array of hexadecimal id
'["5682940386289d593130ed98","568293fe86289d593130ed97","568293f486289d593130ed96"]'
getting an error,
SyntaxError: Unexpected token ' .
Even when i try passing the array as :
'[5682940386289d593130ed98,568293fe86289d593130ed97,568293f486289d593130ed96]'
it throws the error ,
SyntaxError: Unexpected token d .
weird behaviour to understand. Anybody suggestion about where I can read about the same.
typeofvalues which you are attempting to parse. It must be string representation of thejsonJSON.parsewithout error and results in an array. Is that indeed your full string you were parsing in your codebase?