Why does Google prepend while(1); to their JSON responses?

Why does Google prepend while(1); to their (private) JSON responses? For example, here’s a response while turning a calendar on and off in Google Calendar:

I would assume this is to prevent people from doing an eval() on it, […]