Added support for Doc/Diff JSON serialization