Then only have as a single variable ${query} in query parameter and nothing else in the field.



Then construct the entire JSON in the script instead.



var json = '{"country":"Denmark","street":"Main Road"}';



r.setStringParameter('query', json);