title: Any suggestions for how to format an RFC822 email as JSON?
body: <p>I am wanting to insert RFC822 emails into a JSON database.</p>
  
  <p>I'm wanting to envisage a "good" way to structure the email as JSON (excluding attachments).</p>
  
  <p>Does anyone know of an example of a "good" JSON layout for an email, alternatively can anyone suggest one?</p>
  
  <p>thanks</p>
  
  <p>UPDATE: I'm actually looking to see the JSON output rather than the code to do the conversion.</p>