json2ts
json2ts copied to clipboard
complex json keys
Converting a json which keys contains non alphanumeric characters will fail:
{
"src/templates/header.hbs": "<h1>{{title}}</h1>"
}
fails - Not sure if it is fixable - but at least this should be documented and /or these properties ignored. In my case (https://github.com/cancerberoSgx/embed-json-in-ts) I'm joining json2ts but also returning the real object so it get's embedded in ts code automatically.