From 7c7f4fefa68fce98ca7d808cf1209a8de99b11b6 Mon Sep 17 00:00:00 2001 From: Naoyuki Kanezawa Date: Tue, 8 Apr 2014 02:31:09 +0900 Subject: [PATCH] update README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4a0354e..db8477e 100644 --- a/README.md +++ b/README.md @@ -32,19 +32,19 @@ socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() { socket.connect(); ``` -This Library uses [Gson](https://code.google.com/p/google-gson/) to parse and compose JSON strings: +This Library uses [org.json](http://www.json.org/java/) to parse and compose JSON strings: ```java // Sending an object -JsonObject obj = new JsonObject(); -obj.addProperty("hello", "server"); +JSONObject obj = new JSONObject(); +obj.put("hello", "server"); socket.emit("foo", obj); // Receiving an object socket.on("foo", new Emitter.Listener() { @Override public void call(Object... args) { - JsonObject obj = (JsonObject)args[0]; + JSONObject obj = (JSONObject)args[0]; } }); ```