generate json for each users