fail with badSchema if default will not serialzie as JSON