import json
from collections import OrderedDict
json_data = '{"test": 1, "test2": 2, "test3":2}'
data = json.loads(json_data, object_pairs_hook=OrderedDict)
json.JSONDecoder(object_pairs_hook=collections.OrderedDict).decode(data)
import json
from collections import OrderedDict
json_data = '{"test": 1, "test2": 2, "test3":2}'
data = json.loads(json_data, object_pairs_hook=OrderedDict)
json.JSONDecoder(object_pairs_hook=collections.OrderedDict).decode(data)