fixing the returned json