Conversation with #inferno at Wed Jul 31 14:58:56 2013 on powerman@irc.freenode.net (irc) (14:58:56) #inferno: Topic for #inferno set by mennis at 17:30:16 on 12/28/09 (15:03:18) fdd [~fdd@188.24.70.75] entered the room. (15:03:18) fdd left the room (quit: Changing host). (15:03:18) fdd [~fdd@unaffiliated/fdd] entered the room. (15:29:14) vpm [~vpm@2a01:4f8:d13:4286::cafe] entered the room. (15:34:24) msingle [~Thunderbi@wsip-174-77-94-2.hr.hr.cox.net] entered the room. (16:20:31) yshurik left the room (quit: Quit: Leaving.). (16:31:04) msingle left the room (quit: Ping timeout: 246 seconds). (16:55:21) maxvel [~user@li474-202.members.linode.com] entered the room. (17:22:09) msingle [~Thunderbi@wsip-174-77-94-2.hr.hr.cox.net] entered the room. (17:45:26) ikrabbe: Hey, I have a question about json pick adt (17:46:29) ikrabbe: I can now read a string and parse it into a json variable. Acutally this is an array oj objects [{"x":"y"}] kind of (17:47:37) ikrabbe: I do jv:ref JSON->JValue; (jv,nil)=json->readjson(bufio->sopen("[{\"x\":\"y\"}]"); (17:48:18) ikrabbe: afterwards I can pick j:=jv{ Array=> { X:=j.a[0]; } (17:48:40) ikrabbe: so X is now the first element of the array (which should be an JValue->Object (17:48:41) ikrabbe: ) (17:49:53) ikrabbe: but when I want to call, i.e. the text of this ref JValue, X.text() limbo tells me: (17:50:09) ikrabbe: mod.b:398: cannot call 'X.text' without importing JValue from a variable (17:50:25) ikrabbe: I absolutely don't understand what this means (17:51:09) ikrabbe: can anyone bring me some light? (18:05:34) ikrabbe: I think I got it finally, thx for your audience (18:10:09) anth_x [~a@d199-74-6-9.try.wideopenwest.com] entered the room. (18:16:25) ikrabbe: hmm, is there a more direct interface to pick? I know what I get, so I'm fine if I can jv->a[0]->mem.get("name").s (18:17:01) ikrabbe: for example to get the first element of an array of objects parsed into jv, which has a member "name" which is of value type string (18:32:36) kabbi [~kabbi@178.121.201.89] entered the room. (19:04:01) raphaelsc [~ravelont@189-83-101-21.user.veloxzone.com.br] entered the room. (19:06:08) anth_x left the room (quit: Quit: Leaving.). (19:16:00) anth_x [~a@d199-74-6-9.try.wideopenwest.com] entered the room. (19:24:55) kabbi left the room (quit: Remote host closed the connection). (21:45:11) yshurik [~Adium@62.92.189.109.customer.cdi.no] entered the room. (23:57:25) kabbi [~kabbi@178.121.201.89] entered the room. (00:06:09) msingle left the room (quit: Ping timeout: 264 seconds). (00:42:02) msingle [~Thunderbi@pool-108-17-154-82.nrflva.fios.verizon.net] entered the room. (00:45:48) kabbi left the room (quit: Remote host closed the connection). (00:50:31) msingle left the room (quit: Ping timeout: 246 seconds). (01:11:53) anth_x left the room (quit: Quit: Leaving.). (01:37:27) yshurik left the room (quit: Quit: Leaving.). (04:01:30) raphaelsc left the room (quit: Quit: Leaving). (04:09:42) The account has disconnected and you are no longer in this chat. You will automatically rejoin the chat when the account reconnects.