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 can i do that?

This is my JSON response from device

This my server side JSON response.

Now i want to compare it with all the contact in the database on the serve which were used to during app 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.