i am using the json library, and everything seems to be going great..
but i am missing one more piece..
my code looks like this:
results := Json readFrom: geocode readStream.
and it works fine..
the only problem is that there are a few keys that have underscores in
them.. like:
'formatted_address'
when i try to do:
results 'formatted_address'
it bombs..
but any other key that does not have an underscore works fine..
any ideas?
thanks!
--
----
peace,
sergio
photographer, journalist, visionary
http://www.coffee-black.comhttp://www.painlessfrugality.comhttp://www.twitter.com/sergio_101http://www.facebook.com/sergio101
i am currently using HTTPSocket to pull data from a url...
looks like this:
| data |
data := String
fromByteArray: (HTTPSocket httpGet: anUrl).
i end up with a string that has my desired data (a JSON string), but,
it's preceeded by this:
'a RWBinaryOrTextStream ' '<here is the stuff i need>' ' '
i am trying to lop off the first part by doing:
jsonData := dataString replaceAll: 'RWBinaryOrTextStream' with: 'test'.
just to see if i can touch the string..
but no matter what i do, i can't get any parts of the string to be raplaced..
it almost looks like there are three strings in there..
the RWBinaryOrTextStream one, the one i need, and an empty one..
is there a better way to pull a url?
thanks!
--
----
peace,
sergio
photographer, journalist, visionary
http://www.coffee-black.comhttp://www.painlessfrugality.comhttp://www.twitter.com/sergio_101http://www.facebook.com/sergio101