test_json: Fix deprecation warnings