Monday, 15 June 2015

python - serialized json size is much more than pickled or original dictionary -


I want to send a dragon dictionary through network sockets. For the dumping dictionary I have used the ujson and json but the result is much higher than the original dictionary.

The original dictionary size is approximately 1mb JSON size is approximately 6mb and the result is approximately 1mb

I note that the code in the dictionary has some binary data that is encoded to base64 and builtin len function data to convert to text


No comments:

Post a Comment