You can find an example in the documentation: https://docs.mendix.com/refguide6/consumed-rest-services
Furthermore on the internet you can find a lot of json generators like: http://www.objgen.com/json?demo=true