Here you can find the source of loadJson(String path)
public static String loadJson(String path) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static String loadJson(String path) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(path), "UTF-8")); StringBuilder stringBuilder = new StringBuilder(); String line = null;//w ww. j a v a 2s .c o m while ((line = reader.readLine()) != null) { stringBuilder.append(line); } return stringBuilder.toString(); } }