pyjson_tricks icon indicating copy to clipboard operation
pyjson_tricks copied to clipboard

Extra features for Python's JSON: comments, order, numpy, pandas, datetimes, and many more! Simple but customizable.

Results 13 pyjson_tricks issues
Sort by recently updated
recently updated
newest added

I have been using json_tricks for years now, and it's been very handy - especially with numpy. I recently realized that python's native bytestrings cannot be natively serialized in json....

Stripping comments from files that are multiple megabytes takes an obscene amount of time, even if there are no comments. I don't think I can make it much faster without...

v4.0

This will probably have to wait until python 2 support is discontinued (probably in 2020).

enhancement
v4.0

Numpy arrays are stored as text arrays by default. This is readable but takes a lot of space. When the file is compressed, it perhaps makes more sense to use...

v4.0

@mverleg Hi Mark, nice to meet you, first of all, thanks for creating this little library, it's quite handy one... today I've found a little bug. Could you please take...

Not sure this is worthwhile, because GIL prevents any separate thread for performing well. And it's not safe to share mutable data anyway.

enhancement
maybe

Should be easy, just use built-in methods: https://docs.djangoproject.com/en/1.10/topics/serialization/#serialization-formats-json See also this question: http://stackoverflow.com/questions/757022/how-do-you-serialize-a-model-instance-in-django

enhancement
maybe

closes https://github.com/mverleg/pyjson_tricks/issues/98

v4.0

It seems that there are some edge cases with serializing scalars and numpy arrays with 0-dimensions This has always confused me, so for precision, I quote numpy's [documentation](https://numpy.org/doc/stable/reference/arrays.ndarray.html#calculation) > An...