Fixed: replaced version by feature detection to determine if \JsonSerializer is supported.