RepositoryService utilizes toJSON instead of json_encode for creating resources. XmlaConnection field name correction