func RunJsonQuery(query string, ses graph.HttpSession) (interface{}, error) { c := make(chan interface{}, 5) go ses.ExecInput(query, c, 100) for res := range c { ses.BuildJson(res) } return ses.GetJson() }