{"id":16722386,"url":"https://github.com/ccoffrin/py-json-examples","last_synced_at":"2025-03-15T13:21:49.378Z","repository":{"id":97678120,"uuid":"429574384","full_name":"ccoffrin/py-json-examples","owner":"ccoffrin","description":"Examples of working with JSON data in Python","archived":false,"fork":false,"pushed_at":"2021-11-22T17:56:27.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T03:33:08.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccoffrin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-11-18T20:44:45.000Z","updated_at":"2021-11-22T17:56:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3261b1c-25a2-4c54-a65c-797a22c641d7","html_url":"https://github.com/ccoffrin/py-json-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoffrin%2Fpy-json-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoffrin%2Fpy-json-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoffrin%2Fpy-json-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoffrin%2Fpy-json-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccoffrin","download_url":"https://codeload.github.com/ccoffrin/py-json-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243733335,"owners_count":20339026,"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":[],"created_at":"2024-10-12T22:34:27.466Z","updated_at":"2025-03-15T13:21:49.372Z","avatar_url":"https://github.com/ccoffrin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-json-examples\n\nExamples of working with JSON data in Python\n\n## Outline\n\n- Reading CSV data in python (see `csv-read.py`)\n  - types of data (string / float / int / boolean)\n  - missing data\n  - column names\n  - better solution? if data is truely tabular use \"dataframes\" (see pandas)\n  - but what if the data is not tabular?\n\n- What is JSON? (see `data/json_00.json`)\n  - data types, string / float / int / boolean, null\n  - resursive design\n  - very easy to parse\n\n- Reading JSON data in pyhton (see `json-read.py`)\n  - python data structure built automatically\n  - data types encoded automatically\n\n- Data encoding ideas (see `json-encoding.py`)\n  - array of arrays (row-first, csv like) `json_table_01.json`\n  - dict of arrays (column-first, dataframe like) `json_table_02.json`\n  - array of dicts (map, object like) `json_table_03.json`\n\n- CSV to JSON\n  - pick a JSON encoding\n  - perform data structure manipulations in python into a dict\n  - write JSON\n  - basic solution `csv-to-json-01.py`\n  - more advanced solution `csv-to-json-02.py`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccoffrin%2Fpy-json-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccoffrin%2Fpy-json-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccoffrin%2Fpy-json-examples/lists"}