Saturday 27 May 2017

Remove fields from JSON all subpaths in node.js

I am working on qpx-flight api. The response of this Api has lots of 'id' and 'kind' fields. I want to strip those from the response at all paths and subpaths and further down the whole response JSON.

I could enumerate on the, whole response and strip them one at a time in a loop. But I think there must be a simple/elegant way to do this.

enter image description here



via BangOperator

No comments:

Post a Comment