Saving JSON file response from a response from an API

When I try to save the response from a JSON file after sending a number as input , i get a JSON response and when I try to save the data it gives me an error “i.g.h.a.ResponseProcessor - Request ‘requests’ failed: jsonPath($).find.exists failed, could not prepare: Boon failed to parse into a valid AST: Arr
ayIndexOutOfBoundsException: null” . Is there anyway to save this??

So far i have this:

val scn = scenario("Scenario Name") // A scenario is a chain of requests and pauses

Did you managed to resolve this issue ? if yes then please can you share how ?