Hope the below links helps.
Related to this question:
I believe all you need to do is right-click one of your folders, choose Add other, JSON structure, paste in your JSON and click OK. Then right-click the same folder, choose Add other, Export Mapping and then you can use the JSON structure.
TLDR; You can't map a recursive structure in JSON. But you could use an example message with an amount of levels (10?) that is higher then you will ever enounter.
The problem with recursive structures is that in theory they are infinitely long which makes it hard to map them graphically. Unless your mapping would be some kind of template. But this is not the case in Mendix.
In Mendix you have to map every level specifially, which basically means that your structure cannot be infinitly deep. More so because you use an example message as message definition when you use a JSON message. If you use an XML/SOAP Message you could use an XSD which allows you to import the infinite structure but you still need to map each level explicitly.