Bug fix, line 93, ret.json() --> ret.json since json is not callable