Convert objects to a string value
<pre><code>jQuery.each(input, function(key, value){
    jQuery('&lt;div/&gt;', {
        class: 'info',
        id: value.id,
        text: jQuery('&lt;div/&gt;', {class: 'image', text: '&lt;img src="'+value.image+'"&gt;'})+jQuery('&lt;div/&gt;', {class: 'text_data', text: value.name})
    }).appendTo('#list');
});
</code></pre>

<p>Is it possible somehow to convert objects to string in <code>text</code> attribute (should to be no cycles). If needed can be wrapped by a function.</p>

<p><strong>UPDATE:</strong></p>

<pre><code>&lt;div class="info" id="29"&gt;[object Object][object Object]&lt;/div&gt;
&lt;div class="info" id="30"&gt;[object Object][object Object]&lt;/div&gt;
&lt;div class="info" id="31"&gt;[object Object][object Object]&lt;/div&gt;
</code></pre>

<p>So i need to update this line <code>jQuery('&lt;div/&gt;', {class: 'image', text: '&lt;img src="'+value.image+'"&gt;'})+jQuery('&lt;div/&gt;', {class: 'text_data', text: value.name})</code> that there would be a string.</p>
