Skip to content

IsMemberOfJsonType - cJsonObject

Checks JSON type of a specific member of an array or object against the passed type

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
sMember String Explicit JSON typeConstantMeaning
eType Integer

Syntax

Function IsMemberOfJsonType String sMember Integer eType Returns Boolean

Call Example

Get IsMemberOfJsonType sMember eType to BooleanVariable

Description

Checks JSON type of a specific member of an array or object against the passed type.

Note that if the member does not exist, an error will be thrown. The HasMember function can be used to determine if a member exist.

Return Value

If the type passed matches the type of the member, True will be returned.