title: What is the best standard style for a toString implementation?
body: <p>We have a lot of objects for which we like to implement a simple <code>toString</code> to output attributes of the object.  Some of these attributes may be complex objects themselves.</p>
  
  <p>Is there any standard, or simply just a best practice for a style?  I'm thinking something like:</p>
  
  <pre><code>[SimpleClassName] { prop1:value, prop2:value }
  </code></pre>
  
  <p>In which case a nested value would look like:</p>
  
  <pre><code>[SimpleClassName] { prop1:value, prop2:[NestedObject] { prop3:value}}
  </code></pre>
  
  <p>We are using Java but I find myself asking the same question in most languages!</p>