Added some JSON APIs.