Handling custom Json marshalling in golang.