write-object-to-json