BE_JSON_ArraySize

BE_JSON_ArraySize ( json )

 

Will return the number of values in a JSON array.

 

Notes and Limitations :

The existing BE plugin based JSON functions will be deprecated in a future release.  It's undecided if they'll be replaced with something else or not, we haven't found a good set of viable replacements.  If you're looking for an alternative please consider this :

https://github.com/geistinteractive/JSONCustomFunctions

 

Version : 2.1

 

Parameters :
json : the array to count.

 

Result : Returns the number of values in the array, or ? for an error. Other errors are logged and can be retrieved with BE_GetLastError.

 

Examples :

BE_JSON_ArraySize ( " [ { " &
BE_JSON_Encode ( "firstName" ; "John" ) & ", " & BE_JSON_Encode ( "lastName" ; "Doe" ) & " }, { " &
BE_JSON_Encode ( "firstName" ; "Anna" ) & ", " & BE_JSON_Encode ( "lastName" ; "Smith" ) & " }, { " &
BE_JSON_Encode ( "firstName" ; "Peter" ) & ", " & BE_JSON_Encode ( "lastName" ; "Jones" ) & " } ]" )

Have more questions? Submit a request

0 Comments

Article is closed for comments.