[api, webui] do not rely on multi_json or yajl, json will do for us