Implemented PublishJSONCommand