improve result to json