pass only json data to client.