Make the badge json stuff reusable and use it for user_json