change return json type, two arrays