Added json decoration support to query json with mocha tests