Hello,
I'm capturing some data from an external system that is in XML format. I've converted serialized that into a JSON object and extracted some properties for the core elements in my document, but want to keep a copy of the entire XML source in the document as well.
Object serialized to String. RavenJObject instance expected.
So my question is, how can I set a property of a document to be a string of JSON?
e.g.
public class User
{
public string Name {get;set;}
public string SomeJson {get;set;}
}
//serialized XML into "SomeJson" using JSON.NET
...
...
session.store(new User { Name = "Bob", SomeJson = @"{"Name": "Bob", "EyeColor": "blue"}" }));
Many thanks for any insight. Love Raven so far!