Thanks Luigi. Not sure if that is explicitly stated enough in the documentation. Going by the documentation I would of thought that the return type was a Javascript JSON object.
Can you point me to any documentation on this? Much appreciated On Wednesday, 19 February 2014 08:12:56 UTC, Luigi Dell'Aquila wrote: > > Hi Thomas, > > test[0] is actually an ODocument (a Java object). > Just try this: > > test[0].field("name") > > Luigi > > > 2014-02-19 3:23 GMT+01:00 Thomas Kennedy <tomais....@gmail.com<javascript:> > >: > >> Hi, >> >> I am using the 1.7-rc1 version and have attempted to access an element on >> JSON object that is returned and receive a blank value. I execute the code >> on the studio thru the function section. >> >> var test = db.query("select from OUser"); >> var thename = test[0]["name"]; >> >> >> //also tried this >> //var thename = test[0].name; >> >> >> return thename; >> >> >> Not sure if I am missing something obvious.... >> >> Tom >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to orient-databa...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.