Add docs for the json write api