Changed response to JSON