output, err := jsoniter.Marshal(struct { UserName string `json:"user_name"` FirstLanguage string `json:"first_language"` }{ UserName: "taowen", FirstLanguage: "Chinese", }) should.Equal(`{"user_name":"taowen","first_language":"Chinese"}`, string(output))