Note: The following applies to JVM COBOL only.
Paste JSON As Classes
Enterprise Developer enables you to automatically convert JSON data and generate COBOL classes when you paste the data into a COBOL file in a
JVM COBOL project.
- In Eclipse, open a COBOL file from a JVM COBOL project.
- Copy the JSON data from your JSON source file.
- Position the cursor where you want to insert the generated data.
- Click
.
This converts the JSON data to COBOL classes and adds it to the file in your project.
Paste JSON To New File
In Eclipse, you can view the copied JSON data and edit it in the
Paste JSON To New Files window.
- Open a file from a JVM COBOL project that contains data converted from JSON.
- Click
.
This opens the
Paste JSON to New Files wizard and displays the copied JSON code that has been converted into COBOL classes.
- Edit the JSON code. If the changes you have made are not valid, you will receive a prompt to change the code. If the changes
to the JSON are valid, click
Preview.
- The list of files and their content is displayed. Uncheck any files you do not want to be affected by your changes, then click
OK.