Table of Contents

TJElement.FromJSONValue Method

Creates a TJElement from a System.Json.TJSONValue instance.

Remarks

Available only on Delphi XE6 and later. The caller is responsible for freeing the returned TJElement.

Syntax

Unit: Bcl.Json.Classes

class function TJElement.FromJSONValue(Value: TJSONValue): TJElement;

Parameters

<-> Parameter Type Description
Value TJSONValue The TJSONValue to convert. If nil, a TJNull is returned.

Returns

A new TJElement representing the same JSON structure.

See also