Given a JSON schema (given at runtime), I need a function in C# that takes a string as an argument, validates if the given string is a valid JSON object of the given schema and returns a C# serializable object.
With C# serializable object I mean an object that can be added to a ValueSet.
Problem 1: I know, with Json.NET I can deserialize JSON objects, but this works only with classes that are defined at compilation time, whereas my JSON schema is given at runtime, so the classes are not already defined at compilation time!
Problem 2: Json.NET is not returning serializable objects, i.e. the objects that are returned by Json.NET can not be added to a ValueSet!