better json results handling