babel-plugin-object-to-json-parse icon indicating copy to clipboard operation
babel-plugin-object-to-json-parse copied to clipboard

Support partially JSON expression

Open nissy-dev opened this issue 5 years ago • 0 comments

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 🙇.

nissy-dev avatar Jan 03 '20 08:01 nissy-dev