https://github.com/mfaisalkhatri/java-json-examples
Example code to read JSON files using Google Gson library
https://github.com/mfaisalkhatri/java-json-examples
example gson json learning-by-doing testing tutorial
Last synced: 5 months ago
JSON representation
Example code to read JSON files using Google Gson library
- Host: GitHub
- URL: https://github.com/mfaisalkhatri/java-json-examples
- Owner: mfaisalkhatri
- Created: 2024-10-28T07:07:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-21T17:35:29.000Z (6 months ago)
- Last Synced: 2025-08-18T10:02:22.621Z (5 months ago)
- Topics: example, gson, json, learning-by-doing, testing, tutorial
- Language: Java
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Don't forget to give a :star: to make the project popular.
## :question: What is this Repository about?
- This repository contains example code to read JSON files using [Google Gson](https://github.com/google/gson) library
- [Lombok](https://projectlombok.org/) is used for handling the boilerplate code for creating the POJOs
- [Hamcrest](https://hamcrest.org/JavaHamcrest/tutorial) is used as for assertions
- Following are the JSON file examples considered for the demo:
- Only JSON Object at root level
- Array of JSON Objects
- JSON Object at root level containing named JSON Array
- Named JSON object
- All the JSON files used in this repo are available in the `src\test\resources` folder
## 🧬 Need Assistance?
- Discuss your queries by writing to me @ `mohammadfaisalkhatri@gmail.com`
OR ping me on any of the social media sites using the below link:
- [Linktree](https://linktr.ee/faisalkhatri)
## :writing_hand: Blog Links
- [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)
- [How to perform JSON Schema Validation using Rest-Assured?](https://medium.com/@iamfaisalkhatri/how-to-perform-json-schema-validation-using-rest-assured-64c3b6616a91)
## :thought_balloon: Checkout the blogs related to Testing on
- [Medium](https://medium.com/@iamfaisalkhatri)
- [LambdaTest blogs](https://www.lambdatest.com/blog/author/mfaisalkhatri/)
- [My Website](https://mfaisalkhatri.github.io)
### :bookmark: Checkout videos related to Software Testing and Test automation tools on [Testing Talks with Faisal Khatri](https://www.youtube.com/@faisalkhatriqa)