When using the printModel command to print to a .json file when there's no elements defined in the model, the output json file is invalid as the closing square bracket under "elements" is missing.
The issue is fixed after adding elements to the model then run the printModel command.
This is likely not an OpenSeesPy issue. Please post as an issue on github.com/OpenSees/OpenSees and also give more detail and a minimal example that demonstrates the issue.
When using the printModel command to print to a .json file when there's no elements defined in the model, the output json file is invalid as the closing square bracket under "elements" is missing.
The issue is fixed after adding elements to the model then run the printModel command.