Use tryton JSON enc/Decoder
Explicitly typecast ID as int