use provided function to get JSON