get data from server by json type