Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3816

Jsonitem.valueat fails

$
0
0

If I don’t missunderstand the docs, this schould work as expected?!

dim data as new jsonitem("{'bla':'foo'}")
Dim key As String = data.KeyAt(0)
Dim value As String = data.ValueAt(0)

But valueAt raises JSONException “JSONItem is not an array”
Of course, I can do “Dim value As String = data.ValueAt(data.keyAt(0))”

What am I missing?

Marius

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3816

Trending Articles