Check the error log for the app engine. It will tell you what error it is experiencing. Probably you are trying to encode a Python type that json it not familiar with. JSON will only do simple stuff like lists and dictionaries. You can't use it for complex, custom types.