{"id":18151985,"url":"https://github.com/mfaisalkhatri/java-json-examples","last_synced_at":"2025-08-18T10:04:12.560Z","repository":{"id":259974074,"uuid":"879578048","full_name":"mfaisalkhatri/java-json-examples","owner":"mfaisalkhatri","description":"Example code to read JSON files using Google Gson library","archived":false,"fork":false,"pushed_at":"2025-07-21T17:35:29.000Z","size":39,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T10:02:22.621Z","etag":null,"topics":["example","gson","json","learning-by-doing","testing","tutorial"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfaisalkhatri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-10-28T07:07:18.000Z","updated_at":"2025-07-08T14:21:00.000Z","dependencies_parsed_at":"2025-08-18T10:02:25.028Z","dependency_job_id":null,"html_url":"https://github.com/mfaisalkhatri/java-json-examples","commit_stats":null,"previous_names":["mfaisalkhatri/java-json-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mfaisalkhatri/java-json-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Fjava-json-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Fjava-json-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Fjava-json-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Fjava-json-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfaisalkhatri","download_url":"https://codeload.github.com/mfaisalkhatri/java-json-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Fjava-json-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270975219,"owners_count":24678263,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["example","gson","json","learning-by-doing","testing","tutorial"],"created_at":"2024-11-02T02:05:13.227Z","updated_at":"2025-08-18T10:04:12.474Z","avatar_url":"https://github.com/mfaisalkhatri.png","language":"Java","readme":"## Don't forget to give a :star: to make the project popular.\n\n## :question: What is this Repository about?\n\n- This repository contains example code to read JSON files using [Google Gson](https://github.com/google/gson) library\n- [Lombok](https://projectlombok.org/) is used for handling the boilerplate code for creating the POJOs\n- [Hamcrest](https://hamcrest.org/JavaHamcrest/tutorial) is used as for assertions\n- Following are the JSON file examples considered for the demo: \n  - Only JSON Object at root level\n  - Array of JSON Objects\n  - JSON Object at root level containing named JSON Array\n  - Named JSON object\n- All the JSON files used in this repo are available in the `src\\test\\resources` folder\n\n## 🧬 Need Assistance?\n\n- Discuss your queries by writing to me @ `mohammadfaisalkhatri@gmail.com`\n  OR ping me on any of the social media sites using the below link:\n    - [Linktree](https://linktr.ee/faisalkhatri)\n\n## :writing_hand: Blog Links\n- [How to read JSON files in Java using Google Gson library?](https://medium.com/@iamfaisalkhatri/how-to-read-json-files-in-java-using-google-gson-library-3baefd7ae154)\n- [How to perform JSON Schema Validation using Rest-Assured?](https://medium.com/@iamfaisalkhatri/how-to-perform-json-schema-validation-using-rest-assured-64c3b6616a91)\n\n## :thought_balloon: Checkout the blogs related to Testing on\n\n- [Medium](https://medium.com/@iamfaisalkhatri)\n- [LambdaTest blogs](https://www.lambdatest.com/blog/author/mfaisalkhatri/)\n- [My Website](https://mfaisalkhatri.github.io)\n\n### :bookmark: Checkout videos related to Software Testing and Test automation tools on [Testing Talks with Faisal Khatri](https://www.youtube.com/@faisalkhatriqa)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfaisalkhatri%2Fjava-json-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfaisalkhatri%2Fjava-json-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfaisalkhatri%2Fjava-json-examples/lists"}