4.2.1
Bot Framework Emulator cannot open a bot file which contains comments in the JSON.
Steps to reproduce the behavior:
Bot Framework Emulator should open bot files which have comments in the JSON.
n/a
n/a
[bug]
Hello @pkirch ,
Thanks for reporting!
JSON is not supposed to contain comments, as it is meant for configuration, and if it does they are supposed to be removed before being processed by code that parses JSON (methods like Javacsripts's JSON.parse()). The creator of JSON even said it himself.
It would not be a trivial amount of work to enable parsing of JSON containing comments within the emulator: behavior that seems to be discouraged anyways.
The real problem here seems to be how we provide the JSON in the sample.
@tonyanziano can we use the Issue Transfer feature to xfer this to the docs repo, then?
@brandonh-msft That sounds reasonable to me. I actually don't have access to the transfer feature due to lack of access or flighting, but I will find someone who does and get this transferred.
@pkirch & @brandonh-msft
I was about to open an issue over on the Bot Service Docs repo and found that the same issue was just filed 22 hours ago:
https://github.com/MicrosoftDocs/bot-docs/issues/806
So you can track the status there.
Most helpful comment
Hello @pkirch ,
Thanks for reporting!
JSON is not supposed to contain comments, as it is meant for configuration, and if it does they are supposed to be removed before being processed by code that parses JSON (methods like Javacsripts's
JSON.parse()). The creator of JSON even said it himself.It would not be a trivial amount of work to enable parsing of JSON containing comments within the emulator: behavior that seems to be discouraged anyways.
The real problem here seems to be how we provide the JSON in the sample.