Try to convert a String into JSON, if it succeeds return JSON, otherwise it will return the value untouched.