You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the array contains values which are an empty string i.e. "" the function will not return the correct number of items in the array
Suggest changing to
_values = JSONListKeys ( _array ; path )
This will return the correct number of full or empty slots in the array
The text was updated successfully, but these errors were encountered:
rwu2359
changed the title
JSON.ArrayLength will fail with empty string as value
JSON.ArrayLength is incorrect with empty string as value
Jun 15, 2018
Here's a test that demonstrates the error: JSON.ArrayLength ( "[ 1, \"\", 3 ]" ; "" )
should give a result of 3, but instead gives 2.
The suggested fix by @rwu2359 would address this error.
If the array contains values which are an empty string i.e. "" the function will not return the correct number of items in the array
Suggest changing to
_values = JSONListKeys ( _array ; path )
This will return the correct number of full or empty slots in the array
The text was updated successfully, but these errors were encountered: