Previous Next

ParseFile( ) method
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:
Access:
Applies to:
 
Syntax 
ParseFile( INPUT file-name AS CHARACTER )
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.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.