Minor changes to PublishJSONCommand