JsonObject.ReadFrom(Text) Method
Version: Available or changed with runtime version 1.0.
Reads the JSON data from the string into a JsonObject variable.
Syntax
[Ok := ] JsonObject.ReadFrom(String: Text)
Parameters
JsonObject
Type: JsonObject
An instance of the JsonObject data type.
String
Type: Text
The String object from which the JSON data will be read.
Return Value
[Optional] Ok
Type: Boolean
true if the read was successful; otherwise, false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
Remarks
This method can fail if the JSON data is malformed. If the operation succeeds, the JsonObject will be disconnected from its current JSON tree and the data contained by the JsonObject will be replaced with the new value. To delete the contents in a JsonObject variable use the Clear function.
Clear(JsonObject)
Example
This example shows how to read JSON data from a string into a JsonObject variable.
local procedure ReadJson(data : Text) result : JsonObject
begin
result.ReadFrom(data);
end;
See Also
JsonObject Data Type
Get Started with AL
Developing Extensions
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示