import json
from collections import OrderedDict
metadata = json.loads(text, object_pairs_hook=OrderedDict);
metadata中properties的顺序是跟text中定义的顺序是一样的。
转载于:https://www.cnblogs.com/hanjiajiejie/p/9171842.html
import json
from collections import OrderedDict
metadata = json.loads(text, object_pairs_hook=OrderedDict);
metadata中properties的顺序是跟text中定义的顺序是一样的。
转载于:https://www.cnblogs.com/hanjiajiejie/p/9171842.html