handling passing data via JSON and XML to client site