Reading JSON

15 views
Skip to first unread message

jamesb

unread,
Apr 4, 2011, 7:38:16 PM4/4/11
to WebVelocity
Hi all,

Have managed to get my webvelocity app generating json easily enough,
but can't find a simple way to make it parse json. Have found lots of
references to JsonReader online, but this does not seem to be
available in webvelocity, and although it is meant to be in the public
store, i can't find it anywhere. Can anyone assist with where
JsonReader is, or an alternative ? Or will i have to roll my own ?

thx

James

James Robertson

unread,
Apr 4, 2011, 8:27:28 PM4/4/11
to webve...@googlegroups.com
I think if you change the filters WV uses to read the repository, you can load it

> --
> You received this message because you are subscribed to the Google Groups "WebVelocity" group.
> To post to this group, send email to webve...@googlegroups.com.
> To unsubscribe from this group, send email to webvelocity...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webvelocity?hl=en.
>

James Robertson
http://www.jarober.com
jar...@gmail.com

Geert Claes

unread,
Apr 5, 2011, 2:30:15 AM4/5/11
to webve...@googlegroups.com
Maybe you can find some useful info on SqueakSource
http://www.squeaksource.com/@56Si8UX-aq-RCtdY/UCL1U4dW in the JSON for
Squeak package http://forum.world.st/JSON-parsing-tt1680067.html

VA Smalltalk also has a buikt-in JSON parser according to this recent post
on:
http://schrievkrom.wordpress.com/2011/04/04/vasmalltalk-json-and-the-delivered-jsjsonparser/

--
View this message in context: http://forum.world.st/Reading-JSON-tp3426854p3427237.html
Sent from the WebVelocity mailing list archive at Nabble.com.

Michael Lucas-Smith

unread,
Apr 5, 2011, 3:15:42 AM4/5/11
to webve...@googlegroups.com
When I search for JSON in WebVelocity's search box I found JSJsonParser, eg:
JSJsonParser parse: '{"a": "b"}'

This worked like a charm for me.

Cheers,
Michael

jamesb

unread,
Apr 5, 2011, 9:29:49 AM4/5/11
to WebVelocity
James R - Tried changing the filter to All, but still not visible.
Only seem to get around 50 packages in total which seems low, I'm sure
there used to be more when i looked in the past from VW.

Michael / Geert - That worked nicely thanks. Had seen the JSJsonParser
class but assumed it was tied to JavaScript somehow.

A related query, I had to qualify JSJsonParser with the Javascript
namespace, and had to qualify HttpClient with the Net namespace before
using it. Most examples i have found online have not required explicit
namespaces, so is there some way to include certain namespaces in my
project ?

thx

James

Michael Lucas-Smith

unread,
Apr 5, 2011, 10:37:14 AM4/5/11
to webve...@googlegroups.com
>
> A related query, I had to qualify JSJsonParser with the Javascript
> namespace, and had to qualify HttpClient with the Net namespace before
> using it. Most examples i have found online have not required explicit
> namespaces, so is there some way to include certain namespaces in my
> project ?

Not at the moment.

Michael

Reply all
Reply to author
Forward
0 new messages