Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
How do I import JSON into springboot correctly?
Post Body

so at the top of my serverApplication.java file I have the json import as import org.json.simple.JSONObject;

but it is giving it a red squiggily line...

I also added it as a dependency in y pom.xml as

<dependency>

        `<groupId>org.json.simple.JSONObject</groupId>`

        `<artifactId>JSON package</artifactId>`

        `<scope>json</scope>`

        `</dependency>`

it is saying import cannot be resolved

what am I doing wrong?

Author
Account Strength
90%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,204
Link Karma
1,287
Comment Karma
900
Profile updated: 3 days ago
Posts updated: 4 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago