so turns out whether an id is serialized to a json integer or string
depends on the DB backend