allow serialize in json and xml alias
Merge pull request #1405 from jippi/feature/_serialize-in-json-and-xml-alias

Allow serialize in json and xml alias.