Go json and types