Updated postContainersCreate to use writeJSON.