vue-codemirror json格式化精度数据丢失 json-bigint
const key = '{"a":1, "b":1.00000000000000000,"key": 1234567890123456789}'
const JSONbigString = require('json-bigint')({storeAsString: true})
const withString = JSONbigString.parse(key)
console.log('key:', key)
console.log('jsonBigint:', withString)
console.log('jsonParse:', JSON.parse(key))
this.codemirror.setValue((JSON.stringify(withString, null, 2)))