Fix JSON support check