Working Client side code

Successfully sending JSONObjects to server