An open API service indexing awesome lists of open source software.

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

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)