Return type:
READ-JSON ( source-type ,file memptr handle longchar JsonArray JsonObject, read-mode )A CHARACTER expression that specifies the source JSON string type. Valid values are "FILE", "MEMPTR", "JsonArray", "JsonObject", "HANDLE", and "LONGCHAR".A CHARACTER expression that specifies the mode in which this method reads data from the JSON string into a temp-table or a ProDataSet member buffer. The expression must evaluate to "APPEND", "EMPTY", "MERGE", or "REPLACE". The default value is "MERGE".Table 97 lists the READ-JSON( ) method modes for reading data.
Table 97: For a dynamic ProDataSet or temp-table that is in the CLEAR state, the AVM infers the object’s schema from the data in the JSON value. If a dynamic temp-table is not in the PREPARED or CLEAR state, the method generates an error and returns FALSE. For more information about inferring schema from a JSON string, see OpenEdge Development: Working with JSON.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |