change result var json object to boolean