create functions for generating JSON
create functions for generating JSON