Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Dec 9, 2016
1 parent e6e33be commit f2141c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.ibeetl</groupId>
<artifactId>beetl</artifactId>
<version>2.7.3</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/xiaoleilu/hutool/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ public JSONObject(Object object, String[] names) {
}

/**
* Construct a JSONObject from a source JSON text string. This is the most commonly used JSONObject constructor.
* 从JSON字符串解析为JSON对象
*
* @param source A string beginning with <code>{</code>&nbsp;<small>(left brace)</small> and ending with <code>}</code> &nbsp;<small>(right brace)</small>.
* @exception JSONException If there is a syntax error in the source string or a duplicated key.
* @param source 以大括号 {} 包围的字符串,其中KEY和VALUE使用 : 分隔,每个键值对使用逗号分隔
* @exception JSONException JSON字符串语法错误
*/
public JSONObject(String source) throws JSONException {
this(new JSONTokener(source));
Expand All @@ -128,9 +128,9 @@ public boolean isNull(String key) {
}

/**
* Produce a JSONArray containing the values of the members of this JSONObject.
* 将指定KEY列表的值组成新的JSONArray
*
* @param names A JSONArray containing a list of key strings. This determines the sequence of the values in the result.
* @param names KEY列表
* @return A JSONArray of values.
* @throws JSONException If any of the values are non-finite numbers.
*/
Expand Down

0 comments on commit f2141c6

Please sign in to comment.