Parse a string into JSON if possible, otherwise return the raw value.
Input string to parse.
Parsed JSON or the original string.
Parse a string into JSON if possible, otherwise return the raw value.