Use JSON.parse() method to parse a JSON string into a Javascript object
caught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at <anonymous>:4:24
Should i use JSON.parse(JSON.stringify(json code))
it seems like the json string that you're passing to the method is not valid
https://registry.npmjs.org/telegraf
JSON object keys need to be quoted.
how do that
your mean this? " "
Yes :)
this is json file https://registry.npmjs.org/node-telegram-bot-api/ i cant quoted all of object keys
Обсуждают сегодня