I put the ToJson example to show another possibility of serailization. And I said I think for the special case when you develope your own serialization code it's simplier.