How to create a contact list

I want to create a contact list for my application where number on the device has to be compared with the numbers in the database which are use to register for the application.how can i do that?

This is my JSON response from device
index

This my server side JSON response.
serve

Now i want to compare it with all the contact in the database on the serve which were used to during app registration.my purpose of for dloing this to create a contct list for the application which has only the contact number and names compare all these device contacts with the numbers stored into the database in the server.please guide my anyone.