How to read json files with Java 8


#1

I am attempting to read json files with Java 8.

I keep getting the following error when compiling java 8 with the following:

import org.json.simple.JSONArray;

I installed the json simple package, but it does not correct the problem.

Documentation has suggested using a maven interface to help handle this.

Any advice or sample code would be much appreciated.


#2

Error message: error: package org.json.simple does not exist


#3

first please validate your JSON data. these tools can help.


https://codebeautfy.org/jsonvalidator