implementing reciever for json data