Skip to content

Parsing issue #20

Description

@vijayrajthangaraj

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)+"]";})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions