Closed cubap closed 5 months ago
https://github.com/CenterForDigitalHumanities/TinyNode/blob/2cca2506ec1d0aef47c5057577c8e14113a54d1d/public/scripts/api.js#L88
The obj variable is reassigned to JSON.parse() and then put back with JSON.stringify(). Unless there is some explicit validation reason for this, the reassignment can be avoided and then the obj does not need to be transformed.
obj
https://github.com/CenterForDigitalHumanities/TinyNode/blob/2cca2506ec1d0aef47c5057577c8e14113a54d1d/public/scripts/api.js#L88
The
obj
variable is reassigned to JSON.parse() and then put back with JSON.stringify(). Unless there is some explicit validation reason for this, the reassignment can be avoided and then theobj
does not need to be transformed.