Adapt to JSON changes

See
https://gist.github.com/leberwurstsaft/7158911/4b5b6539ae2cee706e16ec1a5
3fa28c29d34fa86  or current revision
(https://gist.github.com/leberwurstsaft/7158911) for details