# Class TCEFJson

Description
Hierarchy
Methods

## Unit

uCEFJson

## Declaration

`type TCEFJson = class(TObject)`

## Description

This item has no description.

## Hierarchy

- TObject
- TCEFJson

## Overview

### Methods

Public | `class function ReadValue(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefValue) : boolean;`
Public | `class function ReadBoolean(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : boolean) : boolean;`
Public | `class function ReadInteger(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : integer) : boolean;`
Public | `class function ReadDouble(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : double) : boolean;`
Public | `class function ReadString(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ustring) : boolean;`
Public | `class function ReadBinary(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefBinaryValue) : boolean;`
Public | `class function ReadDictionary(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefDictionaryValue) : boolean;`
Public | `class function ReadList(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefListValue) : boolean;`
Public | `class function Parse(const jsonString: ustring; options: TCefJsonParserOptions = JSON_PARSER_RFC): ICefValue; overload;`
Public | `class function Parse(const json: Pointer; json_size: NativeUInt; options: TCefJsonParserOptions = JSON_PARSER_RFC): ICefValue; overload;`
Public | `class function ParseAndReturnError(const jsonString: ustring; options: TCefJsonParserOptions; out errorMsgOut: ustring): ICefValue;`
Public | `class function Write(const node: ICefValue; options: TCefJsonWriterOptions = JSON_WRITER_DEFAULT): ustring; overload;`
Public | `class function Write(const node: ICefDictionaryValue; options: TCefJsonWriterOptions = JSON_WRITER_DEFAULT): ustring; overload;`
Public | `class function Write(const node: ICefValue; var aRsltStrings: TStringList): boolean; overload;`
Public | `class function Write(const node: ICefDictionaryValue; var aRsltStrings: TStringList): boolean; overload;`
Public | `class function SaveToFile(const node: ICefValue; const aFileName: ustring): boolean; overload;`
Public | `class function SaveToFile(const node: ICefDictionaryValue; const aFileName: ustring): boolean; overload;`
Public | `class function LoadFromFile(const aFileName: ustring; var aRsltNode: ICefValue; options: TCefJsonParserOptions = JSON_PARSER_RFC): boolean;`

## Description

### Methods

Public | `class function ReadValue(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefValue) : boolean;`
Returns the ICefValue value at the specified key.

Public | `class function ReadBoolean(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : boolean) : boolean;`
Returns the boolean value at the specified key.

Public | `class function ReadInteger(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : integer) : boolean;`
Returns the integer value at the specified key.

Public | `class function ReadDouble(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : double) : boolean;`
Returns the double value at the specified key.

Public | `class function ReadString(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ustring) : boolean;`
Returns the ustring value at the specified key.

Public | `class function ReadBinary(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefBinaryValue) : boolean;`
Returns the ICefBinaryValue value at the specified key.

Public | `class function ReadDictionary(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefDictionaryValue) : boolean;`
Returns the ICefDictionaryValue value at the specified key.

Public | `class function ReadList(const aDictionary : ICefDictionaryValue; const aKey : string; var aValue : ICefListValue) : boolean;`
Returns the ICefListValue value at the specified key.

Public | `class function Parse(const jsonString: ustring; options: TCefJsonParserOptions = JSON_PARSER_RFC): ICefValue; overload;`
Parses the specified |json_string| and returns a dictionary or list representation. If JSON parsing fails this function returns NULL.

Public | `class function Parse(const json: Pointer; json_size: NativeUInt; options: TCefJsonParserOptions = JSON_PARSER_RFC): ICefValue; overload;`
Parses the specified UTF8-encoded |json| buffer of size |json_size| and returns a dictionary or list representation. If JSON parsing fails this function returns NULL.

Public | `class function ParseAndReturnError(const jsonString: ustring; options: TCefJsonParserOptions; out errorMsgOut: ustring): ICefValue;`
Parses the specified |json_string| and returns a dictionary or list representation. If JSON parsing fails this function returns NULL and populates |error_msg_out| with a formatted error message.

Public | `class function Write(const node: ICefValue; options: TCefJsonWriterOptions = JSON_WRITER_DEFAULT): ustring; overload;`
Generates a JSON string from the specified root |node|. Returns an NULL string on failure. This function requires exclusive access to |node| including any underlying data.

Public | `class function Write(const node: ICefDictionaryValue; options: TCefJsonWriterOptions = JSON_WRITER_DEFAULT): ustring; overload;`
Generates a JSON string from the specified root |node|. Returns an NULL string on failure. This function requires exclusive access to |node| including any underlying data.

Public | `class function Write(const node: ICefValue; var aRsltStrings: TStringList): boolean; overload;`
Generates a JSON string from the specified root |node|. Returns an NULL string on failure. This function requires exclusive access to |node| including any underlying data.

Public | `class function Write(const node: ICefDictionaryValue; var aRsltStrings: TStringList): boolean; overload;`
Generates a JSON string from the specified root |node|. Returns an NULL string on failure. This function requires exclusive access to |node| including any underlying data.

Public | `class function SaveToFile(const node: ICefValue; const aFileName: ustring): boolean; overload;`
Saves the JSON data in |node| to a file in aFileName.

Public | `class function SaveToFile(const node: ICefDictionaryValue; const aFileName: ustring): boolean; overload;`
Saves the JSON data in |node| to a file in aFileName.

Public | `class function LoadFromFile(const aFileName: ustring; var aRsltNode: ICefValue; options: TCefJsonParserOptions = JSON_PARSER_RFC): boolean;`
Loads the JSON data in |aFileName| using the |encoding| and returns an ICefValue node in |aRsltNode|.

Generated by PasDoc 1.0.4.