implemented MAD-21: _id encoding in url as json to keep types