У меня есть вот такой HTML элемент:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"BaseSalary": {
"Currency": "USD",
"Value": {
"UnitText": "YEAR",
"@type": "QuantitativeValue"
},
"@type": "MonetaryAmount"
},
"DatePosted": "2020-05-15T05:04:20.193",
"EducationRequirements": "",
"EmploymentType": [
"FULL_TIME"
],
"ExperienceRequirements": "",
"Identifier": "927323",
"HiringOrganization": {
"Name": "Staples Stores",
"@type": "Organization"
},
"JobLocation": {
"Address": {
"AddressLocality": "Elgin",
"AddressRegion": "IL",
"AddressCountry": "US",
"PostalCode": "60123",
"@type": "PostalAddress"
},
"Geo": {
"Latitude": 42.03891,
"Longitude": -88.31189,
"@type": "GeoCoordinates"
},
"@type": "Place"
},
"Title": "Xerox Certified iGen Operator",
"@type": "JobPosting"
}
</script>
Надо текст, заключенный в тег <script>
, извлечь в виде JSON, чтобы удобнее было с ним работать.