use json to pass results from BE to FE