aparo/pyes — pull request #232 by aviflax (2012-11-26 19:15:26+00:00)
Title: Make JSON encoding more resilient

Before this change, if a document to be indexed contained a random object, there was a good chance of causing json to raise a false circular reference error, caused by the same value being passed to default over and over again, ad nauseum. After this change, an unrecognized object will simply be converted to a string representation.