fixed the infinite recursion bug when expanding objects in the json response