To parse a JSON array into its JavaScript equivalent, we used the JSON. parse method. The JSON string that should be parsed is the only parameter we gave to the method. A SyntaxError exception is generated if you provide invalid JSON to the method.