Fix compile issue in JSONTest