Skip to main content
Solved

What do I need to use JSONPath?

  • February 28, 2024
  • 2 replies
  • 201 views

Roger2595

Hi everyone, how are you??

Can anyone tell me what field I use in JSONPath to map "Id": 1240 from the beginning of this response from my API:
   ({"deal":{"id":1240,"name":"2024-02).


What do I need to use JSONPath?

I already used this: $.owners.deal_id  and $.deal.id
 

Does anyone deeply understand this?

Thanks in advance!


Roger Mello

Best answer by rodrigo_silvano

Hey, ​@Roger2595 

 

{
"deal": {
"id": 1240,
"name": "2024-02"
}
}

Based on your information, to map “id: 1240”, you should use $.deal.id

 

2 replies

metadana
  • Up-and-Comer
  • February 18, 2025

Hi,
$.deal.id this should work. would you please explain the error you have while using $.deal.id?


rodrigo_silvano
Forum|alt.badge.img+4
  • Manychat Community Moderator
  • Answer
  • February 18, 2025

Hey, ​@Roger2595 

 

{
"deal": {
"id": 1240,
"name": "2024-02"
}
}

Based on your information, to map “id: 1240”, you should use $.deal.id