mirror of
https://github.com/httpie/cli.git
synced 2025-08-16 06:48:27 +02:00
Fixed and added test for JSON properties order.
This commit is contained in:
@ -640,7 +640,7 @@ def parse_items(items,
|
||||
|
||||
if item.sep in SEP_GROUP_RAW_JSON_ITEMS:
|
||||
try:
|
||||
value = json.loads(value)
|
||||
value = json.loads(value, object_pairs_hook=OrderedDict)
|
||||
except ValueError as e:
|
||||
raise ParseError('"%s": %s' % (item.orig, e))
|
||||
target = data
|
||||
|
Reference in New Issue
Block a user