1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Implement HTTPie Nested JSON v2

This commit is contained in:
Batuhan Taskaya
2022-01-04 12:04:20 +03:00
parent 21faddc4b9
commit 7bf373751d
7 changed files with 665 additions and 228 deletions

View File

@@ -17,7 +17,7 @@ from .dicts import (
RequestQueryParamsDict,
)
from .exceptions import ParseError
from .json_form import interpret_json_form
from .nested_json import interpret_nested_json
from ..utils import get_content_type, load_json_preserve_order_and_dupe_keys, split
@@ -202,7 +202,7 @@ def process_data_raw_json_embed_arg(arg: KeyValueArg) -> JSONType:
def process_data_nested_json_embed_args(pairs) -> Dict[str, JSONType]:
return interpret_json_form(pairs)
return interpret_nested_json(pairs)
def load_text_file(item: KeyValueArg) -> str: