Trying a better way of reading json