From 5f421ff306aa7baae15ab34a4cb0a71d8d697967 Mon Sep 17 00:00:00 2001 From: "X. Wei" Date: Mon, 1 Oct 2012 06:09:15 -0700 Subject: [PATCH] Update 7.2.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更正刚才错误的修改 --- 7.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/7.2.md b/7.2.md index e87c802c..5d657ce5 100644 --- a/7.2.md +++ b/7.2.md @@ -205,7 +205,7 @@ JSON(Javascript Object Notation)是一种轻量级的数据交换语言, {"serverName":"Go \"1.0\" ","serverName2":"\"Go \\\"1.0\\\" \""} -在Marshal函数转换的过程中我们需要注意几点: +Marshal函数只有在转换成功的时候才会返回数据,在转换的过程中我们需要注意几点: - JSON对象只支持string作为key,所以要编码一个map,那么必须是map[string]T这种类型(T是Go语言中任意的类型)