What's the output from this, should it be returning JSON?