I have worked out that JsonParser is in javax.json.stream but i have no idea where i can get a hold of it. Can anyone help me?
That's the library i am looking for.
I have tried looking at the maven repositories and found something similar called
If you are using maven, you can add the following dependency
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> </dependency>
you can also download the artefact manually here
For Gradle, use
compile group: 'javax', name: 'javaee-api', version: '7.0'
The site https://mvnrepository.com shows you the different dependencies for different build systems.
Please note that this is only one possible dependency. You can certainly find smaller dependencies, which only contain the classes you want. Simply search for it on google or mavencentral.