Added ability to write json blob.