serializer: fixed #19

deserializer won't produce parameter with incosistent state when dangling commas
are present in JSON