Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing issue #20

Open
vijayrajthangaraj opened this issue May 16, 2024 · 1 comment
Open

Parsing issue #20

vijayrajthangaraj opened this issue May 16, 2024 · 1 comment

Comments

@vijayrajthangaraj
Copy link

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 with mapping:

var template = {
foo: ['$',{
bar:'$.ProviderClientID'
}]
};

Throws error
jsonpath-object-transform-master/node_modules/JSONPath/lib/jsonpath.js:41
var normalized = expr.replace(/['[]']/g, function($0,$1){return "[#"+(subx.push($1)-1)+"]";})

@vijayrajthangaraj
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant