Consistently use simplejson to loading and dumping JSON. (#2817)

* Consistently use simplejson to loading and dumping JSON.

This introduces the new functions redash.utils.json_dumps and redash.utils.json_loads and simplifies the custom encoder setup.

UUIDs are now handled by the default encoder, too.

Fixes #2807.

Use string comparison in parse_boolean instead of the (simple)json module.
This commit is contained in:
Jannis Leidel
2018-10-09 15:38:06 +02:00
committed by GitHub
parent 5ffc85c066
commit c2429e92d2
62 changed files with 280 additions and 321 deletions

View File

@@ -1,6 +1,6 @@
import datetime
import json
from unittest import TestCase
from redash.query_runner.prometheus import get_instant_rows, get_range_rows