Use json directly to remove DeprecationWarning