Сегодня столкнулись с такой ошибкой.
Впервые.
Текст команды:
Код: Выделить всё
ver: 2.1.19.19
{"Command":"RegisterCheck","NumDevice":1,"IdDevice":"","InnKkm":"","Timeout":30,"IsFiscalCheck":true,"TypeCheck":0,"CancelOpenedCheck":true,"NotPrint":false,"CashierName":"Оператор 1","ClientAddress":"","TaxVariant":"","CheckProps":"","AdditionalProps":"","CheckStrings":{"0":{"PrintText":{"Text":" ","Font":2}}
,"Cash":1,"CashLessType1":0,"CashLessType2":0,"CashLessType3":0,"IdCommand":"5d89f0f6-6dde-17f1-4d08-80633b3d5ed8"}
Текст ошибки:
Ошибка разбора (парсинга) команды
Низкоуровневые команды:
Ошибка разбора (парсинга) команды: Message: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'KkmFactory.Unit+DataCommand+CheckString[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'CheckStrings.0', line 1, position 276.