ObjectContract can write JSON for objects which has no parameterless constructor.