Skip to content
Discussion options

You must be logged in to vote

I believe len only works on array. Though I am interested in this API now, I tried looking for a way but can't find one. Even GJson doesn't seem to have a way around this.

For clarity's sake, Author is trying to get the length of clients which is an object, not an array:

"clients": {
    "84:c5:a6:2b:42:42": { }
    "f2:74:41:ef:c1:89": { }
}

Referencing PR: #746

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ralphocdol
Comment options

Answer selected by CakesTwix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants