MCPcopy Index your code
hub / github.com/aws/aws-cli / _unpack_json_cli_arg

Function _unpack_json_cli_arg

awscli/argprocess.py:176–182  ·  view source on GitHub ↗
(argument_model, value, cli_name)

Source from the content-addressed store, hash-verified

174
175
176def _unpack_json_cli_arg(argument_model, value, cli_name):
177 try:
178 return json.loads(value, object_pairs_hook=OrderedDict)
179 except ValueError as e:
180 raise ParamError(
181 cli_name, "Invalid JSON: %s\nJSON received: %s" % (e, value)
182 )
183
184
185def _unpack_complex_cli_arg(argument_model, value, cli_name):

Callers 2

_unpack_cli_argFunction · 0.85
_unpack_complex_cli_argFunction · 0.85

Calls 1

ParamErrorClass · 0.85

Tested by

no test coverage detected