Searched refs:json (Results 1 - 25 of 31) sorted by relevance

12

/pkg/src/modules/
H A Dp5i.py28 import simplejson as json namespace
82 dump_struct = json.loads(data)
84 dump_struct = json.load(fileobj)
222 json.dump(dump_struct, fileobj, ensure_ascii=False,
H A Dp5s.py29 import simplejson as json namespace
78 dump_struct = json.loads(data)
279 json.dump(dump_struct, fileobj, ensure_ascii=False,
H A Dmisc.py46 import simplejson as json namespace
1434 (option, default_value, [valid values], [json schema])
1703 'tsv', 'json', and 'json-formatted' are supported. The first is
1798 elif out_format == "json" or out_format == "json-formatted":
1800 if out_format == "json-formatted":
1803 # 'json' formats always include any extra fields returned;
1804 # any explicitly named fields are only included if 'json'
1817 output = json
[all...]
/pkg/src/tests/cli/
H A Dt_client_api.py35 import simplejson as json namespace
145 pargs_json=json.dumps(args), opts_json=json.dumps(opts))
174 opts_json=json.dumps(opts))
181 pargs_json=json.dumps([]),
188 """Test valid arguments for pkg json."""
197 opts_json=json.dumps(opts))
201 pargs_json=json.dumps(["foo"]),
218 """Test json args or opts for list command."""
283 """Test json arg
[all...]
H A Dt_pkg_verify.py33 import simplejson as json namespace
510 out_json = json.loads(self.output)
524 out_json = json.loads(self.output)
588 out_json = json.loads(self.output)
599 out_json = json.loads(self.output)
619 out_json = json.loads(self.output)
H A Dt_pkg_freeze.py33 import simplejson as json namespace
242 version, d = json.load(open(pth))
244 json.dump((-1, d), fh)
H A Dt_fix.py36 import simplejson as json namespace
189 out_json = json.loads(self.output)
198 out_json = json.loads(self.output)
H A Dt_pkg_info.py30 import json namespace
765 entry = json.load(open(path))["test"]["bronze"][0]["metadata"]
773 entry = json.load(open(path))["test"]["bronze"][0]["metadata"]
H A Dt_pkg_avoid.py33 import simplejson as json namespace
119 version, d = json.load(f)
H A Dt_pkg_composite.py31 import json namespace
374 entry = json.load(open(path))["test"]["foo"][0]
H A Dt_pkgrepo.py45 import simplejson as json namespace
1617 # json output.
1618 self.pkgrepo("list -s {0} -F json".format(src))
1688 # json-formatted output.
1689 self.pkgrepo("list -s {0} -F json-formatted".format(src))
3783 self.assertEqualJSON(json.dumps(expected), self.output)
3792 output = json.loads(self.output)
3796 self.assertEqualJSON(json.dumps(expected),
3797 json.dumps(output))
3820 output = json
[all...]
H A Dt_pkg_temp_sources.py32 import json namespace
566 entry = json.load(open(path))["test"]["foo"][0]["metadata"]
H A Dt_pkgrecv.py33 import simplejson as json namespace
557 self.pkgrepo("-s {0} list -F json".format(npath))
558 out_json = json.loads(self.output)
834 self.pkgrepo("-s {0} list -F json".format(npath))
835 out_json = json.loads(self.output)
1403 self.pkgrepo("-s {0} list -F json filetrans2".format(
1405 out_json = json.loads(self.output)
1414 self.pkgrepo("-s {0} list -F json filetrans3".format(
1416 out_json = json.loads(self.output)
/pkg/src/
H A Drad-invoke.py36 import simplejson as json namespace
121 ips_logger.info(json.dumps(ret_json))
H A Ddepot-config.py36 import simplejson as json namespace
387 status_file.write(json.dumps(status, ensure_ascii=False,
H A Dpkgrepo.py37 LISTING_FORMATS = ("default", "json", "json-formatted", "tsv")
83 import simplejson as json namespace
602 "section" : [("default", "json", "tsv"), _("SECTION"), ""],
603 "property" : [("default", "json", "tsv"), _("PROPERTY"), ""],
604 "value" : [("default", "json", "tsv"), _("VALUE"), ""],
753 "publisher" : [("default", "json", "tsv"), _("PUBLISHER"), ""],
754 "section" : [("default", "json", "tsv"), _("SECTION"), ""],
755 "property" : [("default", "json", "tsv"), _("PROPERTY"), ""],
756 "value" : [("default", "json", "ts
[all...]
/pkg/src/modules/client/
H A Drad_pkg.py29 import simplejson as json namespace
363 pargs_json = json.dumps(pargs_json)
366 opts_json = json.dumps(opts_json)
387 out_json = json.loads(out_line)
448 out_json = json.loads(out_json)
H A Dplandesc.py43 import simplejson as json namespace
322 """Save a json encoded representation of this plan
329 json.dump(state, fobj, encoding="utf-8")
338 """Load a json encoded representation of a plan description
345 state = json.load(fobj, encoding="utf-8",
756 # json will convert lists of tuples
H A Dimage.py37 import simplejson as json namespace
4264 version, d = json.load(f)
4323 json.dump((self.__AVOID_SET_VERSION, d), tf)
4360 version, d = json.load(f)
4381 json.dump(
H A Dclient_api.py34 import simplejson as json namespace
83 bytes string into unicode string in Python 3. This will be used by json
421 """Prepare an error message for json output. """
489 """Get the default error json schema."""
508 """Construct json schema."""
510 json_schema = {"$schema": "http://json-schema.org/draft-04/schema#",
524 """Prepare json structure for returning."""
1282 # Convert to json.
1283 parsable_plan = json.loads(json
[all...]
/pkg/src/util/apache2/sysrepo/
H A Dsysrepo_p5p.py253 json = simplejson.load(catalog_attrs)
254 for part in json["parts"]:
/pkg/src/tests/
H A Drun.py28 import simplejson as json namespace
439 ver, time_estimates = json.load(fh)
/pkg/src/modules/client/linkedimage/
H A Dcommon.py49 import simplejson as json namespace
130 # will prevent it from being accidentally serialized to json.
141 json dictionary containing planned image changes
2790 # comparison we load the serialized on-disk json data
3312 json version of the plan on stdout, and we'll verify it by
3313 running it through the json parser.
3361 p_dict = json.loads(stdout)
3605 json.dump(data, fobj, encoding="utf-8",
3632 data = json.load(fobj, encoding="utf-8",
3644 class PkgEncoder(json
[all...]
/pkg/src/modules/client/transport/
H A Drepo.py31 import simplejson as json namespace
1494 json.dump(rstatus, buf, ensure_ascii=False, indent=2,
2065 json.dump(arcdata, buf, ensure_ascii=False, indent=2,
/pkg/src/modules/server/
H A Ddepot.py54 import simplejson as json namespace
1462 [("Content-Type", "application/json; charset=utf-8")])
1472 out = json.dumps(dump_struct, ensure_ascii=False,
1509 '{"this is a": "fragment of json"}'])

Completed in 131 milliseconds

12