added boolean function and json data.