babel-plugin-object-to-json-parse
babel-plugin-object-to-json-parse copied to clipboard
Support partially JSON expression
At present, I decided not to support partially JSON expression like below in #27.
Partially JSON expressions such as [notValid, {isValid:true}] ensuring {isValid:true} is transformed.
const data = { bar: invalid_object, foo: 'foo' }
↓
const data = { bar: invalid_object, JSON.parse('{"foo": "foo"}')}
Does anyone need this feature? If you need this feature, please comment on this issue with your detail 🙇.