jsonpath-object-transform icon indicating copy to clipboard operation
jsonpath-object-transform copied to clipboard

Transform an object literal using JSONPath.

Results 14 jsonpath-object-transform issues
Sort by recently updated
recently updated
newest added

It would be nice to be able to transform items of an array using a custom callback. Possible Syntax: (Chapter: Transform Items Returned in Array) ``` { destination: ['$.path.to.sources', function(item)...

``` TypeError: seek[0].forEach is not a function at seekArray (.../node_modules/jsonpath-object-transform/lib/jsonpath-object-transform.js:96:15) at walk (.../node_modules/jsonpath-object-transform/lib/jsonpath-object-transform.js:52:7) at .../node_modules/jsonpath-object-transform/lib/jsonpath-object-transform.js:118:7 at Array.forEach (native) at seekObject (.../node_modules/jsonpath-object-transform/lib/jsonpath-object-transform.js:117:26) at walk (.../node_modules/jsonpath-object-transform/lib/jsonpath-object-transform.js:52:7) at .../node_modules/jsonpath-object-transform/lib/jsonpath-object-transform.js:131:5 at Object. (.../transform.js:47:10) at...

Hello, I would like to make a suggestion: In addition to transform the structure of the object, it would be also possible to transform the value of the attributes. For...

enhancement

Problem statement I have data in the format var data3 = { ClientID:'25', ProviderID:'26', ProviderClientID:'DEMO1815', SSN:'377215685' }; Mapping data: var template = { foo: [{ bar:'$.ProviderClientID' }] }; Also tried...