add query term info into json output as well