return the result as json encoding