AXIS2-5943 fix samples/json client code
diff --git a/modules/samples/json/README.txt b/modules/samples/json/README.txt
index c91c253..05c530f 100644
--- a/modules/samples/json/README.txt
+++ b/modules/samples/json/README.txt
@@ -9,19 +9,24 @@
 
 In this sample it sends
 
-{"echoUser":{"user":{"name":"My_Name","surname":"MY_Surname","middleName":"My_MiddleName","age":123,
-    "address":{"country":"My_Country","city":"My_City","street":"My_Street","building":"My_Building","flat":"My_Flat","zipCode":"My_ZipCode"}}}}
+{"echoUser":[{"arg0":{"name":My_Name,"surname":MY_Surname,"middleName":My_MiddleName,"age":123
+,"address":{"country":My_Country,"city":My_City,"street":My_Street,"building":My_Building,"fla
+t":My_Flat,"zipCode":My_ZipCode}}}]}
+
 
 JSON request to the echoUser method and get the response as
 
 {"Response":{"name":"My_Name","surname":"MY_Surname","middleName":"My_MiddleName","age":123,
     "address":{"country":"My_Country","city":"My_City","street":"My_Street","building":"My_Building","flat":"My_Flat","zipCode":"My_ZipCode"}}}
 
+Note that the above request String could be placed into a file myjson.dat and used with curl:
+
+curl -v -H "Content-Type: application/json" -X POST --data @/root/myjson.dat http://localhost:8080/axis2/services/JsonService/echoUser
 
 Pre-Requisites
 ==============
 
-Apache Ant 1.6.2 or later
+Apache Ant 1.8 or later
 
 Running The Sample
 ==================
@@ -43,4 +48,4 @@
 
 Help
 ====
-Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.
\ No newline at end of file
+Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.
diff --git a/modules/samples/json/src/sample/json/client/JsonClient.java b/modules/samples/json/src/sample/json/client/JsonClient.java
index 51f867f..ebd3681 100644
--- a/modules/samples/json/src/sample/json/client/JsonClient.java
+++ b/modules/samples/json/src/sample/json/client/JsonClient.java
@@ -31,13 +31,11 @@
 public class JsonClient{
 
     private String url = "http://localhost:8080/axis2/services/JsonService/echoUser";
-    private String contentType = "application/json-impl";
+    private String contentType = "application/json";
     private String charSet = "UTF-8";
 
     public static void main(String[] args)throws IOException {
-        String echoUser = "{\"echoUser\":{\"user\":{\"name\":\"My_Name\",\"surname\":\"MY_Surname\",\"middleName\":" +
-            "\"My_MiddleName\",\"age\":123,\"address\":{\"country\":\"My_Country\",\"city\":\"My_City\",\"street\":" +
-            "\"My_Street\",\"building\":\"My_Building\",\"flat\":\"My_Flat\",\"zipCode\":\"My_ZipCode\"}}}}";
+	String echoUser = "{\"echoUser\":[{\"arg0\":{\"name\":\"My_Name\",\"surname\":\"MY_Surname\",\"middleName\":" + "\"My_MiddleName\",\"age\":123,\"address\":{\"country\":\"My_Country\",\"city\":\"My_City\",\"street\":" + "\"My_Street\",\"building\":\"My_Building\",\"flat\":\"My_Flat\",\"zipCode\":\"My_ZipCode\"}}}]}";
 
         JsonClient jsonClient = new JsonClient();
         jsonClient.post(echoUser);