make it more encoding/json like

Signed-off-by: Wang Zhen <lazybetrayer@gmail.com>