is_jsonable

is_jsonable(x)[source]

Check if a dict is jsonable.

Credit: https://stackoverflow.com/a/53112659