$echo '{
< "texts": [
< "<h1> Stellar Gooseneck Kettle 1.0L </h1><span class=\\"price\\">$49.99</span> In stock"
< ],
< "outputSchema": {
< "type": "object",
< "properties": {
< "name": {
< "type": "string"
< },
< "price": {
< "type": [
< "number",
< "null"
< ]
< },
< "currency": {
< "type": [
< "string",
< "null"
< ],
< "description": "ISO 4217 code, e.g. USD"
< },
< "in_stock": {
< "type": [
< "boolean",
< "null"
< ]
< }
< },
< "required": [
< "name",
< "price",
< "currency",
< "in_stock"
< ]
< }
<}' |
<apify call sprucethedata/clean-json --silent --output-dataset