compare interface and struct json unmarshal