import org.ujson.*;
import java.io.*;
public class UjsonExample {
public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new FileReader("data.json"));
StringBuilder jsonData = new StringBuilder();
String line;
while ((line = reader.readLine()) != null) {
jsonData.append(line);
}
reader.close();
JsonObject jsonObject = (JsonObject) Ujson.parse(jsonData.toString());
String name = jsonObject.getString("name");
int age = jsonObject.getInt("age");
} catch (IOException e) {
e.printStackTrace();
}
}
}