cleaning, custom json r/w for ad/id

having the ability to read/write differently turns out pretty neat if
you need to convert vars between types it turns out...