Send json to write api

@pbadenski
@gtrogers