finish json encoding benchmark