Add a new external method "convert-object", which is for defining how to convert a (structure|standard) object into a property list for JSON encoding.