Make sure you have an import mapping for your JSON structure.
You can then use the Core.integration().importStream method to import your JSON.
You can find the documentation of that method here: https://apidocs.mendix.com/7/runtime/com/mendix/integration/Integration.html
If mapping to a json is not necessary in mendix you can also pass it in as a string to your java action and parse it their to json