Here is a fix for a bug I ran into.

...ray containing a jsonObject containing only other jsonObjects