Debugging JSON retrieval