title: Custom Serialization with Json.net
body: <p>I am obtaining information through the vSphere API (SOAP). The responses come back with an array of custom objects and custom properties. Working through it to get what you want can be a bit of a pain, so I started playing around with serializing the returned data to Json. This is working reasonably well, although I am finding it a little hard to group returned data and filter it. Anyway, here is an example json tree:</p>
  
  <p><a href="https://i.stack.imgur.com/1UF1y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1UF1y.png" alt="Example Json Hierarchy Tree"></a></p>
  
  <p>What I would like help with is formatting this tree so it is more like this</p>
  
  <p><a href="https://i.stack.imgur.com/YNI4X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YNI4X.png" alt="What I Want.."></a></p>
  
  <p>As you can see, what I am trying to achieve is when serializing from an object to json, I would like to 'relocate' some of the objects. I want to make it easier, i.e. I can search for the json path containing .config.hardware and get all the child information back. I've been reading through the Json.Net documentation, but I'm so confused at the moment, I don't even know where to start!</p>