Fix tests when JSON::XS is missing

JSON::PP doesn't add a space after the comma even when space_after is set, so handle either case.
v2.008

          fix test for JSON::PP, which doesn't always follow orders about
          spaces!  (thanks, Dagfinn Ilmari Mannsåker!)