{"id":22306183,"url":"https://github.com/renatahodovan/xson","last_synced_at":"2025-07-29T04:32:51.342Z","repository":{"id":88390493,"uuid":"187473208","full_name":"renatahodovan/xson","owner":"renatahodovan","description":"XML Encoding for JSON","archived":false,"fork":false,"pushed_at":"2024-11-20T19:22:22.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-20T20:25:31.600Z","etag":null,"topics":["json","jsonx","xml"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renatahodovan.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-19T12:23:19.000Z","updated_at":"2024-11-20T19:22:26.000Z","dependencies_parsed_at":"2024-08-25T23:21:27.393Z","dependency_job_id":"e5303e74-9583-4700-93a4-097b485e9540","html_url":"https://github.com/renatahodovan/xson","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":0.2954545454545454,"last_synced_commit":"ebc0076318c4e997be62e71333fd413cd2119dec"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatahodovan%2Fxson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatahodovan%2Fxson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatahodovan%2Fxson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatahodovan%2Fxson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renatahodovan","download_url":"https://codeload.github.com/renatahodovan/xson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227981850,"owners_count":17850920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","jsonx","xml"],"created_at":"2024-12-03T19:14:52.499Z","updated_at":"2024-12-03T19:14:53.015Z","avatar_url":"https://github.com/renatahodovan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"====\nXSON\n====\n*XML Encoding for JSON*\n\n.. image:: https://img.shields.io/pypi/v/xson?logo=python\u0026logoColor=white\n   :target: https://pypi.org/project/xson/\n.. image:: https://img.shields.io/pypi/l/xson?logo=open-source-initiative\u0026logoColor=white\n   :target: https://pypi.org/project/xson/\n.. image:: https://img.shields.io/github/actions/workflow/status/renatahodovan/xson/main.yml?branch=master\u0026logo=github\u0026logoColor=white\n   :target: https://github.com/renatahodovan/xson/actions\n.. image:: https://img.shields.io/coveralls/github/renatahodovan/xson/master?logo=coveralls\u0026logoColor=white\n   :target: https://coveralls.io/github/renatahodovan/xson\n\n.. start included documentation\n\n*XSON* is a Python package that supports the serialization of Python objects to\nXML documents according to the JSONx_ specification (draft), as well as the\ndeserialization of JSONx documents to Python objects. The implementation aims at\nbeing API and CLI-compatible with Python's standard JSON_ package.\n\n.. _JSONx: https://tools.ietf.org/html/draft-rsalz-jsonx-00\n.. _JSON: https://docs.python.org/3/library/json.html\n\n\nRequirements\n============\n\n* Python_ \u003e= 3.8\n\n.. _Python: https://www.python.org\n\n\nInstall\n=======\n\nTo use *XSON* in another project, it can be added to ``setup.cfg`` as an install\nrequirement (if using setuptools_ with declarative config):\n\n.. code-block:: ini\n\n    [options]\n    install_requires =\n        xson\n\nTo install *XSON* manually, e.g., into a virtual environment, use pip_::\n\n    pip install xson\n\nThe above approaches install the latest release of *XSON* from PyPI_.\nAlternatively, for the development version, clone the project and perform a\nlocal install::\n\n    pip install .\n\n.. _setuptools: https://github.com/pypa/setuptools\n.. _pip: https://pip.pypa.io\n.. _PyPI: https://pypi.org/\n\n\nUsage\n=====\n\nAPI\n---\n\nExample:\n\n\u003e\u003e\u003e import xson\n\u003e\u003e\u003e out = xson.dumps({'foo': 42, 'bar': [3.14, 'baz', True, None]}, indent=4)\n\u003e\u003e\u003e print(out)  #doctest: +NORMALIZE_WHITESPACE\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cjson:object xmlns:json=\"http://www.ibm.com/xmlns/prod/2009/jsonx\"\u003e\n    \u003cjson:number name=\"foo\"\u003e42\u003c/json:number\u003e\n    \u003cjson:array name=\"bar\"\u003e\n        \u003cjson:number\u003e3.14\u003c/json:number\u003e\n        \u003cjson:string\u003ebaz\u003c/json:string\u003e\n        \u003cjson:boolean\u003etrue\u003c/json:boolean\u003e\n        \u003cjson:null/\u003e\n    \u003c/json:array\u003e\n\u003c/json:object\u003e\n\u003e\u003e\u003e dct = xson.loads(out)\n\u003e\u003e\u003e print(dct)\n{'foo': 42, 'bar': [3.14, 'baz', True, None]}\n\nCLI\n---\n\nA command line tool is available to validate, pretty-print, or convert between\nJSONx and JSON objects::\n\n    xson-tool --help\n\nor::\n\n    python -m xson.tool --help\n\n.. end included documentation\n\n\nCopyright and Licensing\n=======================\n\nLicensed under the BSD 3-Clause License_.\n\n.. _License: LICENSE.rst\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatahodovan%2Fxson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenatahodovan%2Fxson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatahodovan%2Fxson/lists"}