Code example for JsonParser

Methods: parse

        String json = parseJsonFileAsString(fileName);
        return parseJsonString(json);
    public static JsonElement parseJsonString(String json) {
        JsonParser parser = new JsonParser();
        return parser.parse(json);
    public static String parseJsonFileAsString(String fileName) throws IOException {
        ClassPathResource resource = new ClassPathResource(fileName);
        String read = IOUtils.toString(resource.getInputStream());
        return read;
Connect your IDE to all the code out there  Get Codota for Java