Fixed crash in SDK due to JSON parsing exception.

The `priority` attribute of an item seems to be of
`double` type, rather than - as I would expect - an
`integer`.

Fixes: #3001