Ok, so if print() work, then JSON.parse() should work too, but it causes an error.
print()
JSON.parse()
... //uart.write(`\x03\x10print(${_cmd})\n`); uart.write(`\x03\x10JSON.parse(${_cmd})\n`); ...
Reports:
Got:"Uncaught SyntaxError" Got:": Expecting a valid " Got:"value, got ID\r\n at l" Got:"ine 1 col 1\r\n[object" Got:" Object]\r\n^\r\n>"
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, so if
print()
work, thenJSON.parse()
should work too, but it causes an error.Reports: