Fixed respond json with the correct way instead of just respond the context, we need to respond a dumped json.