Add default overriding of Flask's jsonencoder. Add json tests