Serialize Topic in the requested format

Change-Id: I88ae9c0ca433e7ebf88d97d564ba03c4bc543da7
Merge "Serialize Topic in the requested format" into frontend-rewrite