靠，我竟然忘了JSON
Add register method.