In json test, check which json module is being used, and append a trailing space accordingly.