I have an lwc which returns data as {abc=123,xyz=123} Controller function testFunction(Object xyz){} I want to call the testFunction in anonymous window, so how can i assign the object the value '{abc=123,xyz=123}' and check it? When i do declare Object data={abc=123,xyz=123} in anonymous window it shows error. But when i call using lwc it works fine. How can i call the testFuncion from anonymous window?
Please clarify what exactly you are looking for with some details.
Controller function testFunction(Object xyz){}
I want to call the testFunction in anonymous window, so how can i assign the object the value '{abc=123,xyz=123}' and check it?
When i do declare Object data={abc=123,xyz=123} in anonymous window it shows error. But when i call using lwc it works fine.
How can i call the testFuncion from anonymous window?
OK Let's try to understand. What you mean your lwc returns data as {abc=123, xyz=123},
You cannot define Object data={abc=123,xyz=123}
Can you check if there is any inner class define in your contrller like this
Would you like to share the code?