Json query to XHI almost done