Only json_decode if it's a string, not when it's an array.