Skip to content

pbRequireAllMembers - cJsonObject

Determines if JsonToDataType will give errors if a struct member does not exist in the JSON structure

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbRequireAllMembers
Access Type Syntax
Read Access: Get pbRequireAllMembers to BooleanVariable
Write Access: Set pbRequireAllMembers to BooleanVariable/Value

Description

This property determines if JsonToDataType will give errors if a struct member does not exist in the JSON structure.

If set to False, a missing member in the JSON will not cause an error and leaves the struct member uninitialized.

If set to True, null values (a common use) will not trigger an error.

The default value is True.