interconversion between aeson and bson.