GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Eight — Data Functions (continued)
Overview
The JSONGetValue function returns the data type associated with a specified item in the object.
Syntax/Parameters
Syntax
var = JSONGetValue ( handle hJSON, string item, [bool native] );
Parameters
hJSON
A string representing
item
A string representing the item to capture from the object. See Object Names at the start of the section.
native
An optional bool value specifying to return the data in native data type form opposed as a string data type. The default value is FALSE.
Return Value
Returns either a string data type or the data type native to the requested object. The object can be an array. Use the IsError, GetLastError and GetLastErrorMessage functions to retrieve error information.
If the type is object, then the return value will be an array.
Remarks
The JSONGetValue function retrieves data associated with a specific node within the object. The node is “obj.name.name...” where “obj” is the root and the names are the specified location in the object.
Note that the return variable must be of the correct type. Failure to insure this can result in a run time error. Use native option or the JSONGetInteger and JSONGetString functions for simple data to avoid issues.
Note that when floating point double numbers (float type) are converted to string, the default precision of 6 digits after the decimal place is used.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.