As the documentation shows, users have to explicitly escape double quotes in string config value e.g., "value": "\"Hello!\"".
Thus, the config parser doesn't need to escape the character; current parser implementation value = value.replace(/"/g, '\\"'); causes an error against the appropriately escaped config value as:
<command line>:17:38: note: expanded from here
#define MBED_CONF_APP_WELCOME_STRING \Hello!\\
As the documentation shows, users have to explicitly escape double quotes in string config value e.g.,
"value": "\"Hello!\""
.Thus, the config parser doesn't need to escape the character; current parser implementation
value = value.replace(/"/g, '\\"');
causes an error against the appropriately escaped config value as:We can delete the parser-side escape code.