add bean to json method