add json method to base dao class