add json to user controller