Thanks Andrew for the pointer to the Devel::Peek module.  I didn&#39;t know about this module. <div><br></div><div>I had also found that Data::Dumper did very subtly show a difference between a value internally stored in Perl as a string or as a number.  In the two dump snippets shown below, the numeric value is unquoted, and the string value is single quoted.  For my purposes, I added zero (+ 0) to my values before putting them into the data structure that I was passing to the &quot;to_json&quot; call.  This produced the JSON string I needed without the double quotes.  Now my jQuery flot charts work perfectly. </div>
<div><br></div><div>Thanx for the help!</div><div><br></div><div><br></div><div><div>&#39;data&#39; =&gt; [                  &#39;data&#39; =&gt; [</div><div>            [                            [</div><div>              0,                           &#39;0&#39;,</div>
<div>              &#39;31.3794&#39;                    &#39;31.3794&#39;</div><div>            ],                           ],</div><div>            [                            [</div><div>              1,                           &#39;1&#39;,</div>
<div>              &#39;57.6309&#39;                    &#39;57.6309&#39;</div><div>            ],                           ],</div><div>            [                            [</div><div>              2,                           &#39;2&#39;,</div>
<div>              0                            &#39;0.0000&#39;</div><div>            ],                           ],</div><div>            [                            [</div><div>              3,                           &#39;3&#39;,</div>
<div>              &#39;40.0247&#39;                    &#39;40.0247&#39;</div><div>            ],                           ],</div><div><br></div></div><div><div><br></div><br><div class="gmail_quote">On Sat, Oct 3, 2009 at 1:50 AM, Andrew Rodland <span dir="ltr">&lt;<a href="mailto:andrew@cleverdomain.org">andrew@cleverdomain.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">&quot;x&quot; in the debugger doesn&#39;t show it, but I would bet that JSON is keying on<br>
the magical, mostly-hidden type (&quot;OK&quot;) flags of scalars. If you do $a =<br>
&quot;12.34&quot;, $a has a valid string value but not a valid numeric value. If you<br>
calculate $a + 0, $a now has a valid string value *and* a valid numeric value,<br>
until it&#39;s changed by either a string operation or a numeric operation (at<br>
which point the value that wasn&#39;t part of the operation is marked as no longer<br>
&quot;OK&quot;.) If you do $b = 12.34, $b has a valid numeric value but not a valid<br>
string value. If you then print $b, $b will have valid numeric *and* string<br>
parts, etc. etc.<br>
<br>
&gt; $ perl -MDevel::Peek -le &#39;$a = &quot;12.34&quot;; print &quot;Before:&quot;; Dump($a); 0 + $a;<br>
print &quot;After:&quot;; Dump($a)&#39;<br>
&gt; Before:<br>
&gt; SV = PV(0xe58b68) at 0xe80ca8<br>
&gt;   REFCNT = 1<br>
&gt;   FLAGS = (POK,pPOK)<br>
&gt;   PV = 0xe7ad00 &quot;12.34&quot;\0<br>
&gt;   CUR = 5<br>
&gt;   LEN = 8<br>
&gt; After:<br>
&gt; SV = PVNV(0xe5a0b0) at 0xe80ca8<br>
&gt;   REFCNT = 1<br>
&gt;   FLAGS = (NOK,POK,pIOK,pNOK,pPOK)<br>
&gt;   IV = 12<br>
&gt;   NV = 12.34<br>
&gt;   PV = 0xe7ad00 &quot;12.34&quot;\0<br>
&gt;   CUR = 5<br>
&gt;   LEN = 8<br>
<br>
&gt; $ perl -MDevel::Peek -le &#39;$b = 12.34; print &quot;Before:&quot;; Dump($b); &quot;&quot; . $b;<br>
print &quot;After:&quot;; Dump($b)&#39;<br>
&gt; Before:<br>
&gt; SV = NV(0x15810d0) at 0x1559ca8<br>
&gt;   REFCNT = 1<br>
&gt;   FLAGS = (NOK,pNOK)<br>
&gt;   NV = 12.34<br>
&gt; After:<br>
&gt; SV = PVNV(0x15330b0) at 0x1559ca8<br>
&gt;   REFCNT = 1<br>
&gt;   FLAGS = (NOK,POK,pNOK,pPOK)<br>
&gt;   IV = 0<br>
&gt;   NV = 12.34<br>
&gt;   PV = 0x157c020 &quot;12.34&quot;\0<br>
&gt;   CUR = 5<br>
&gt;   LEN = 40<br>
<br>
JSON is presumably turning JSON numeric literals into numeric scalars (storing<br>
0 + $val), and likewise when it gets a value that has NOK or IOK but not POK,<br>
it outputs a numeric value without quotes.<br>
<font color="#888888"><br>
Andrew<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>I take the &quot;Shhhh&quot; out of IT - ydy<br>
</div>