Use JSON to save register courses and register users.