<How to return a number instead of a string in Wir...
# stackoverflow
r
How to return a number instead of a string in Wiremock JSON response template Below is shown the JSON response file for a wiremock request. The issue is that the value for num in the request is a number, but this response file is returning num as a string. { "num": "{{jsonPath request.body '$.num'}}", "string": "lorem" } I have tried removing the double quotes i.e. "num": {{jsonPath request.body '$.num'}}, and this works (a number is now returned), but now I get error "Property expected json(513)" in VS Code IDE which I do not want. What can be done to fix this...