handle root keys in JSON responses