Use JSON.encode instead of String interpolation