我正在接收以下格式的json数据…
{
"timestamp":55759,
"sttOutput":
{
"time":55759,"words":
[
{"startTime":1.81,"duration":0.31,"word":"HEY","score":0.97},
{"startTime":2.14,"duration":0.31,"word":"WHERE'S","score":0.87},
{"startTime":2.45,"duration":0.47,"word":"FACEBOOK","score":1.0},
{"startTime":2.92,"duration":0.57,"word":"TRADING","score":1.0}
]
},
"kwsOutput":
{
"time":55759,"words":
[
{"startTime":1.96,"duration":0.19,"word":"FACEBOOK=stock ","score":0.63},
{"startTime":1.82,"duration":0.55,"word":"WHERE=quest IS FACEBOOK=stock TRADING=stock-act ","score":0.74},
{"startTime":1.83,"duration":0.55,"word":"WHERE'S=quest FACEBOOK=stock TRADING=stock-act ","score":0.85}
]
}
}
我想用flex/bison将数据解析为google calendar api可以使用的有效查询。
关于如何做到这一点的任何提示或帮助,以证明最佳实践?