make sure leave do json return