Commit Graph

11 Commits

Author SHA1 Message Date
Aarni Koskela 00b6212212 Be more informative when unable to JSON serialize 2014-08-03 13:24:12 +02:00
Andrew Snare 4d37a54c95 Use simplejson if present instead of the stdlib json module.
The simplejson parser drop-in compatible with the builtin python JSON
parser, but much faster. In particular, this makes operations like
reindexing quicker.
2014-06-25 10:21:36 +02:00
Honza Král a54d7035bb Compatibility with python 3.2
Now all the python 2/3 compatibility code is in elasticsearch.compat
Fixes #52
2014-02-21 16:59:13 +01:00
Honza Král 05c4eefbf3 Enable deserialization of different content types coming from the server. 2013-12-14 18:15:15 +01:00
Honza Král 95fba05e02 Fix unicode body handling.
Only body should be encoded as bytes, not anything going through the
serializer (mostly because of bulk)
2013-12-04 15:07:56 +01:00
Honza Král 4420296636 For string body make sure we serialize unicode properly 2013-12-04 13:22:33 +01:00
Honza Král 73f170f23f Decimal support
Currently only converting to floats which may lose some precision.
Not recommended in 2.6 where float to string serialization is sub-optimal
2013-10-22 00:26:58 +02:00
Honza Kral d8cbe1ac78 More power to the SerializationError 2013-07-30 15:05:46 +02:00
Honza Kral ba98e13da7 Don't serialize stings 2013-06-20 14:07:09 +02:00
Honza Kral 4c74c6911c Serialization error tests 2013-05-03 17:56:27 +02:00
Honza Kral 6aad2599d7 Adding JSONSerializer 2013-05-02 23:42:11 +02:00