json in dict question
Hi there.
I have some json files generated by transcription software - an excerpted example is copied in below.
I can open these in [dict] and view the contents but I'm having no success retrieving. For example the message [get words::1::text] I would expect to retrieve "Because" but I get a "no dictionary called words" error.
What am I doing wrong?
Thanks!
Hector.
{
"words" :
[
{
"text" : "Because",
"type" : "word",
"data_start" : 0.0,
"data_end" : 0.48,
"confidence" : 1.0
},
{
"text" : " of",
"type" : "word",
"data_start" : 0.48,
"data_end" : 0.66,
"confidence" : 1.0
},
{
"text" : " the",
"type" : "word",
"data_start" : 0.66,
"data_end" : 0.84,
"confidence" : 1.0
}
, {
"text" : " cost",
"type" : "word",
"data_start" : 0.84,
"data_end" : 1.04,
"confidence" : 1.0
}
, {
"text" : " of",
"type" : "word",
"data_start" : 1.04,
"data_end" : 1.26,
"confidence" : 1.0
}
, {
"text" : " living,",
"type" : "word",
"data_start" : 1.26,
"data_end" : 1.59,
"confidence" : 1.0
}
]}
OK, for anyone passing... I've solved this, this was a syntax mistake from me, because of the way this includes an array of dictionaries (I think). The correct query is
get words[0]::text
I was further confused by the fact that dict.view counts from 1, where queries need to count from 0... not been in max for a few months :o