yes this is a problem related to _ that was used for affectation before. I think this is fixed now in Pharo.<div><br></div><div>Anyway, a workaround is to change all $_ in another character in the stream you get (maybe changing it to $-).</div>
<div><br></div><div>&#39;test_test&#39; replaceAll: $_ with: $-</div><div><br></div><div>hth,<br><br><div class="gmail_quote">2010/4/5 sergio_101 <span dir="ltr">&lt;<a href="mailto:sergiolist@village-buzz.com">sergiolist@village-buzz.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">i am using the json library, and everything seems to be going great..<br>
but i am missing one more piece..<br>
<br>
my code looks like this:<br>
<br>
results := Json readFrom: geocode readStream.<br>
<br>
and it works fine..<br>
<br>
the only problem is that there are a few keys that have underscores in<br>
them.. like:<br>
<br>
&#39;formatted_address&#39;<br>
<br>
when i try to do:<br>
<br>
results &#39;formatted_address&#39;<br>
<br>
it bombs..<br>
<br>
but any other key that does not have an underscore works fine..<br>
<br>
any ideas?<br>
<br>
thanks!<br>
<br>
--<br>
<br>
----<br>
peace,<br>
sergio<br>
photographer, journalist, visionary<br>
<br>
<a href="http://www.coffee-black.com" target="_blank">http://www.coffee-black.com</a><br>
<a href="http://www.painlessfrugality.com" target="_blank">http://www.painlessfrugality.com</a><br>
<a href="http://www.twitter.com/sergio_101" target="_blank">http://www.twitter.com/sergio_101</a><br>
<a href="http://www.facebook.com/sergio101" target="_blank">http://www.facebook.com/sergio101</a><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Cédrick <br>
</div>