title: Send data to server through JSON
body: <p>I m new on Android Programmer,i want to send data to server through JSON in following format and implement Json in this format..and also want to fetch data from server..</p>
  
  <ul>
  <li>URL: <a href="http://fort.example.com" rel="nofollow">http://fort.example.com</a></li>
  <li>Signup</li>
  </ul>
  
  
  
  <pre><code>{
  
      "signup": [
  
      {
      "username": "test1264",
      "password": "1234",
      "email": "example@gmail.com",
      "phoneno": "223344556",
      "altphoneno": "12345678",
      "firstname": "abc",
      "lastname": "xyz"
      }    ]
  }
  </code></pre>
  
  <p>Response:</p>
  
  <blockquote>
    <p>on success: <code>{"status":1}</code><br>
    on failure: <code>{"status":0}</code></p>
  </blockquote>
  
  <ul>
  <li>JSON for user login:</li>
  </ul>
  
  
  
  <pre><code>{"login":[
        {"username":"test1234",
         "password":"1234"}
         ]}
  Response:
  on success:  {
  "user": [
  {
  "firstname": "abc",
  "lastname": "xyz",
  "email": "example@gmail.com",
  "phone": "99887766",
  "username": "test1234"
  }
  ]
  }
  </code></pre>
  
  <p>On failure: <code>{"error":["Auth error"]}</code></p>