0
votes

I'm using Json path extractor to fetch id from the json

getid = $.id

But it is not fetching any value. The json is:

Json
..Data
....abcd = dlkf
....id = 038443
....ksdhf= ofkj
..success = true
2

2 Answers

0
votes

Please share what value do you want to fetch from JSON? Is it 038443? I believe issue is not with with JSON extractor but the regular expression you have written. Please share more details so a solution could be proposed.

0
votes

Use the following JSONPath Extractor configuration:

  • Destination Variable Name: any name of your choice, i.e. getid
  • JSONPath Expression: $..id[0]

Refer extracted value as ${getid} where required.

References: