How to access the object name having space in it? I have the below response in the screenshot. How shall I access the “line 1” object from the array? Below is the code that I’m using-
console.log(jsonArrayData[0].sublists.recmachcustrecord_amp_slz_saleslocation.line 1);
But I’m getting an error-
“SyntaxError: missing ) after argument list” while executing that line:
Details (like screenshots):
I’ve already tried: I have tried using
console.log(jsonArrayData[0].sublists.recmachcustrecord_amp_slz_saleslocation.line1);
But the result is
undefined
How shall I access line 1 object?