Added PublishJSONCommand and PublishJSONCommandFactory classes.