This is my code:

> 
> soup\_detail.find\_all("script",type="application/ld+json")[0].contents[0]
> 
> 
> 

This is the output of above code:

> 
> '{ "@context": "<http://schema.org>", "@type": "Product", 
>  "name":"Men\'s Slippers Brief Design Rivet Decor All Match Fashion
>  Wearable Shoes", "image":"", "description": "Material:Faux Leather",
>  "brand":{ "@type": "Thing", "name": "" }, "aggregateRating": { 
>  "@type": "AggregateRating", "ratingValue": "5", "reviewCount": "1" }, 
>  "offers": { "@type": "Offer", "availability":
>  "<http://schema.org/InStock>", "price": "10.99", "priceCurrency": "USD"
>  } }'
> 
> 
> 

How can I extract for example like "ratingValue": "5","reviewCount": "1" from this bs4.element.NavigableString?

Thanks in advance for the help.