REST.Response.Adapter.TCustomRESTResponseDataSetAdapter.RootElement

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RootElement: string read FRootElement write SetRootElement;

C++

__property System::UnicodeString RootElement = {read=FRootElement, write=SetRootElement};

Properties

Type Visibility Source Unit Parent
property public
REST.Response.Adapter.pas
REST.Response.Adapter.hpp
REST.Response.Adapter TCustomRESTResponseDataSetAdapter

Description

The JSON deserializer uses RootElement to determine where to start deserializing from.

You can use RootElement to skip container or root elements that do not have corresponding deserialization targets. First, an optionally set RootElement of the corresponding TRESTResponse applies. After that, you apply RootElement. This way you can filter a response container on response level while multiple DataSetAdapters can filter specific root elements by their own.

See Also