JSON.stringify() not working correctly - Second parameter disappears
<p>I have the following object:</p>

<pre><code>var message = {

    default: 'Default',

    GCM: {

        data: {
            title: titleMessage,
            text: textMessage
        }
    }
};
</code></pre>

<p>When I realize:</p>

<pre><code>message.GCM = JSON.stringify(message.GCM);
</code></pre>

<p>The variable message.GCM gets the following value:</p>

<pre><code>{"data":{"title":"titleMessageValue"}} 
</code></pre>

<p>Instead of:</p>

<pre><code>{"data":{"title":"titleMessageValue", "text":"textMessageValue"}} 
</code></pre>

<p>Why does it ignores the second variable from my data object? How can I stringify without lose any variables?</p>