Transforms and flattens a JSON object.
The JSON object to be transformed.
Options for the mutation functions.
An array with the modified object and the flattened object.
transformJson({ a: { b: 1 } }, { filter: 'a' });// => [{ a: { b: 1 } }, { a: { b: 1 } }] Copy
transformJson({ a: { b: 1 } }, { filter: 'a' });// => [{ a: { b: 1 } }, { a: { b: 1 } }]
Transforms and flattens a JSON object.