util.JSONObject.getLength()

util.JSONObject.getLength() returns the number of the key:value pairs included in the JSON object.

Syntax

CALL util.JSONObject.getLength()

Usage and examples

util.JSONObject.getLength() is used to return or display how many key:value pairs there are in the JSON object.

 

This method can be used together with util.JSONObject.getKey() and util.JSONObject.getType() in order to read the elements of JSON objects:

 

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.