to_s json and check if it's an empty string before trying to parse it as...

... json