Problem with query from PHP script

what is different? when you store a string, you will get a string back, when you store an object, it will be transparently encoded as JSON object, and you would get the object back.

result of the query wraps the objects into a map, because you could query multiple buckets in the single query, but inside, it still the same representation of the object.