groovy

JsonOutput.toJson(def) fails with MissingMethodException if the object defines getProperties()