title: How to add nested json object to Lucene Index
body: <p>I need a little help regarding lucene index files, thought, maybe some of you guys can help me out. </p>
  
  <p>I have json like this:</p>
  
  <pre><code>[
  {
      "Id": 4476,
      "UrlName": null,
      "PhoneData": [
          {
              "PhoneType": "O",
              "PhoneNumber": "0065898",
          },
          {
             "PhoneType": "F",
              "PhoneNumber": "0065898",
          }
      ],
      "Contact": [],
      "Services": [
          {
              "ServiceId": 10,
              "ServiceGroup": 2
          },
          {
              "ServiceId": 20,
              "ServiceGroup": 1
          }
      ],
  }
  </code></pre>
  
  <p>]</p>
  
  <p>Adding first two fields is relatively easy:</p>
  
  <pre><code>// add lucene fields mapped to db fields
          doc.Add(new Field("Id", sampleData.Id.Value.ToString(), Field.Store.YES, Field.Index.NOT_ANALYZED));
          doc.Add(new Field("UrlName", sampleData.UrlName.Value ?? "null" , Field.Store.YES, Field.Index.ANALYZED));
  </code></pre>
  
  <p>But how I can add PhoneData and Services to index so it can be connected to unique Id??</p>