{ "info": { "author": "Simon Willison", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# json-flatten\n\n[![PyPI](https://img.shields.io/pypi/v/json-flatten.svg)](https://pypi.org/project/json-flatten/)\n[![CircleCI](https://circleci.com/gh/simonw/json-flatten.svg?style=svg)](https://circleci.com/gh/simonw/json-flatten)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-json-html/blob/master/LICENSE)\n\nPython functions for flattening a JSON object to a single dictionary of pairs, and unflattening that dictionary back to a JSON object.\n\nUseful if you need to represent a JSON object using a regular HTML form or transmit it as a set of querystring parameters.\n\nFor example:\n\n >>> json_flatten.flatten({\"foo\": {\"bar\": [1, True, None]}})\n {'foo.bar.0$int': '1', 'foo.bar.1$bool': 'True', 'foo.bar.2$none': 'None'}\n >>> json_flatten.unflatten(d)\n {'foo': {'bar': [1, True, None]}}\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/simonw/json-flatten", "keywords": "", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "json-flatten", "package_url": "https://pypi.org/project/json-flatten/", "platform": "", "project_url": "https://pypi.org/project/json-flatten/", "project_urls": { "Homepage": "https://github.com/simonw/json-flatten" }, "release_url": "https://pypi.org/project/json-flatten/0.1/", "requires_dist": null, "requires_python": "", "summary": "Python functions for flattening a JSON object to a single dictionary of pairs, and unflattening that dictionary back to a JSON object", "version": "0.1" }, "last_serial": 5433723, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "281aceefcb1cf63725f65eb71c1009e4", "sha256": "1449c37729b312084a87ecc40d1bafb0703a6c56424c6770ab08199234c08506" }, "downloads": -1, "filename": "json_flatten-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "281aceefcb1cf63725f65eb71c1009e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2874, "upload_time": "2019-06-22T04:43:18", "url": "https://files.pythonhosted.org/packages/1e/8b/e1e6f8c7de23ff602ca304714f03893cfd92fb052ee56043c0c4608355c9/json_flatten-0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "281aceefcb1cf63725f65eb71c1009e4", "sha256": "1449c37729b312084a87ecc40d1bafb0703a6c56424c6770ab08199234c08506" }, "downloads": -1, "filename": "json_flatten-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "281aceefcb1cf63725f65eb71c1009e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2874, "upload_time": "2019-06-22T04:43:18", "url": "https://files.pythonhosted.org/packages/1e/8b/e1e6f8c7de23ff602ca304714f03893cfd92fb052ee56043c0c4608355c9/json_flatten-0.1-py3-none-any.whl" } ] }