Here you can find the source of getBoolean(ResultSet rs, String name)
public static Object getBoolean(ResultSet rs, String name)
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static Object getBoolean(ResultSet rs, String name) { try {/*from w w w.j av a2 s .c o m*/ return "\"" + name + "\":" + rs.getBoolean(name) + ""; } catch (SQLException ex) { return "\"" + name + "\":\"error\""; } } }