json2ts icon indicating copy to clipboard operation
json2ts copied to clipboard

complex json keys

Open cancerberoSgx opened this issue 7 years ago • 0 comments

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.

cancerberoSgx avatar Dec 30 '17 04:12 cancerberoSgx