I'm trying to get parameters from the url using param in a controller. My url is: .../index?format=json
I've tried to get the params from the following two methods:
def format = params.format
def parameters = getParams()
The below is what I get in the debug results:
My question is why the format value isn't coming through in the code?