JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. This article explains how to client-server web service communication using Android and PHP, we will use JSON as the data.
We will build a simple calculator web service that has features such as add and multiply.
apikey
represent key to access the webservice, the server will reject the request if the key is invalid, in this article we use “mykey123”
command
represent what command request we want to use, in this article we use “add” or “multiply”
a and b
represent input value we want to calculate Continue reading “How to post JSON data from Android to PHP Codeigniter”