use json() response method