Skip to content

Commit

Permalink
getObject improve
Browse files Browse the repository at this point in the history
  • Loading branch information
setreuid committed Nov 23, 2017
1 parent 710d24b commit c68be0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cc/udp/httpjson/HttpJsonObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public String toString()
return ((JSONObject) item).toJSONString();
}

public JSONObject getObject(String key)
public HttpJsonObject getObject(String key)
{
return (JSONObject)((JSONObject)item).get(key);
return new HttpJsonObject(((JSONObject)item).get(key));
}

public Object get(String key)
Expand Down

0 comments on commit c68be0a

Please sign in to comment.