How to read a json file in java

Create a txt file named jsondata.txt with the below data { “firstName”: “Duke”, “lastName”: “Java”, “age”: 18, “streetAddress”: “100 Internet Dr”, “city”: “JavaTown”, “state”: “JA”, “postalCode”: “12345”, “phoneNumbers”: [ { “Mobile”: “111-111-1111” }, { “Home”: “222-222-2222” } ] } Below is the java code which will read the above text file Main Code package objectmodel;…… Continue reading How to read a json file in java