title: Using Newtownsoft, How could I serialise an Object without its property name?
body: <p>I was sending to a customer a list of 1 millions <code>FOO</code> in json. </p>
  
  <pre><code>public class FOO
  {
      public string Foo, Name, Call, Loc, ID;
      public double Long, Lat;
      public string[] Adr, OpenningHours;
  }           
  </code></pre>
  
  <p>But the customer ask me for a specific output as it will reduce the data size:  </p>
  
  <blockquote>
    <p>Remove the Property name, join the address, and flattern that list their will always be 7 day in a week. Like:</p>
  </blockquote>
  
  <pre><code>[
      [
         "ag",
         99.0000000,
         9.0000000,
         "FOO-FOO BAR",
         "ADR1|ADR2|ADR3|ADR4",
         "0101",
         "07:30-12:00,12:00-19:30",
         "07:30-12:00,12:00-19:30",
         "07:30-12:00,12:00-19:30",
         "07:30-12:00,12:00-19:30",
         "07:30-12:00,12:00-19:30",
         "07:30-13:00,",
         ",",
         "07H30",
         "FOO BAR"
      ],
  ]
  </code></pre>
  
  <p>I have no issue with the with the Address join or the flatern OpenningHours. Using:</p>
  
  <pre><code>public class ItemMapper
  {
      public string Foo, Name, Adr, ID, Call, Loc,
          w1, w2, w3, w4, w5, w6, w7;
      public double Long, Lat;
  }
  
  return  
      new ItemMapper
      {
          Foo = this.Foo,
          // [...]
          Adr = string.Join("|", this.Adr),
          w1 = this.OpenningHours[0],
          // [...]
          w7= this.OpenningHours[6]
      }; 
  </code></pre>
  
  <h3>Is there a proper way to do that without pure string manipulation Replace etc?</h3>
  
  <p>The serialisation of a List give a bad result, that I fix with a compilled regex remplace :</p>
  
  <pre><code>[
      { &lt;-- Not a []
         "PopertyName":"PropertyValue", &lt;-- Poperty Name, and :
         // ..
         "PopertyName":"PropertyValue",
      },
  ]
  </code></pre>