I am new to Mendix.
Q1. I created a JSON structure inside Mappings. Can i access that JSON structure inside a Java action?
Q2. I have a file (json/text) that i want to read inside java action. What all are the possible ways of passinga/accessing file contents inside java action implementation?
Thanks in advance.
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