prototype to export JSON rather than XML
function parameters and object properties can have multiple types