You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find documentation in the README about this. Does the library support a way to deserialize objects without knowing what type they are?
I'm trying to use this approach in a webpage where there are multiple schema.org types. I currently do a string search for all the jsons that contain "@type": "Car" and then deserialize those only. But it would be much cleaner to do htmlNodes.Select(x => SchemaSerializer.DeserializeObject<Thing>(x.InnerHtml)!).OfType<Car>(), where the OfType call does the actual filtering cleanly.
Schema objects
No response
The text was updated successfully, but these errors were encountered:
Describe the feature
I couldn't find documentation in the README about this. Does the library support a way to deserialize objects without knowing what type they are?
I'm trying to use this approach in a webpage where there are multiple schema.org types. I currently do a string search for all the jsons that contain
"@type": "Car"
and then deserialize those only. But it would be much cleaner to dohtmlNodes.Select(x => SchemaSerializer.DeserializeObject<Thing>(x.InnerHtml)!).OfType<Car>()
, where the OfType call does the actual filtering cleanly.Schema objects
No response
The text was updated successfully, but these errors were encountered: