Check if the given string is valid JSON

As the title says.