getting data through JSON attempt