MCPcopy
hub / github.com/httpie/cli / load_json

Function load_json

httpie/cli/requestitems.py:226–230  ·  view source on GitHub ↗
(arg: KeyValueArg, contents: str)

Source from the content-addressed store, hash-verified

224
225
226def load_json(arg: KeyValueArg, contents: str) -> JSONType:
227 try:
228 return load_json_preserve_order_and_dupe_keys(contents)
229 except ValueError as e:
230 raise ParseError(f'{arg.orig!r}: {e}')

Calls 2

ParseErrorClass · 0.85

Tested by

no test coverage detected