In certain situations it's very handy to adjust serialization method preserving the rest of JSONFormetter's logic.
For example replace default serialization (python's standard json lib) by some enhanced one (ujson, other).
So I moved function from global constant to the BaseJSONFormatter class' method.
Also added little fix for tests to be able to run on Windows
In certain situations it's very handy to adjust serialization method preserving the rest of JSONFormetter's logic. For example replace default serialization (python's standard json lib) by some enhanced one (ujson, other).
So I moved function from global constant to the BaseJSONFormatter class' method. Also added little fix for tests to be able to run on Windows