Here you can find the source of asBoolean(String name, boolean value)
public static String asBoolean(String name, boolean value)
//package com.java2s; //License from project: Open Source License public class Main { public static String asBoolean(String name, boolean value) { return "{\"" + name + "\" : " + value + "}"; }//from w ww . ja v a 2 s .c om }