Fix json response when empty