include type in toJson