ParseFile( ) method
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Parses the JSON found from the specified file and returns a JsonConstruct object when the parse is complete. The returned value is either a JsonObject or a JsonArray. If the JSON syntax is incorrect, a JsonParserError is raised.
Return type: Progress.Json.ObjectModel.JsonConstruct class
Access: PUBLIC
Applies to: Progress.Json.ObjectModel.ObjectModelParser class
Syntax
|
- file-name
- A CHARACTER expression naming a file system location containing the JSON string. You can specify an absolute path or a path relative to the current working directory. If the file does not exist or cannot be opened, an error is raised.