add json_encode to Product and Category
Merge branch 'master' of https://github.com/tmlai/CMPUT410-TTHE-Group-Project