Skip to main content
Solved

Response mapping issue

  • Oct 21, 2025 1:24 PM UTC
  • 2 comments
  • 72 views

amassio

Hi, I have this json  {"code":1,"message":"Ok","data":{"winner":false,"play_id":12}}

White the response mapping I can read code and message but not winner and play_id.
I use $.data.winner as selector for example and only code the the other field that works.

If I print the custom field assigned to winner is empty.
Could if be a format issue? winner is a boolean and the custom field is string.

How can I debug it ?

Many thanks.

Best answer by amassio

Thank you Gustavo, the problem was related to the type. Changing winner from string to boolean it worked for me. Probably Maychat try to do any kind of type conversion.

View original

2 replies

Gustavo Boregio
Forum|alt.badge.img+7
  • Community Moderator & Expert
  • Oct 21, 2025 5:28 PM UTC

Hey ​@amassio 

Here are the JSON Paths you need to use:

 

Hope this helps!!


amassio
  • Author
  • Up-and-comer
  • Answer
  • Oct 22, 2025 7:34 AM UTC

Thank you Gustavo, the problem was related to the type. Changing winner from string to boolean it worked for me. Probably Maychat try to do any kind of type conversion.