I have the folowing scenario:-
I need to create a Request class (in Javascript) with the following structure
<Request>
<a/>
<filter>
<x/>
<y/>
<z/>
</filter>
<c/>
<d/>
</Request>
The initial question is, how do I accomplish this in Javascript.
Now, for the broader picture:- This request is an input to a Script Service. So, is this a best practice to create the request object at the client rather than obtain them somehow. If not what is the best practice in doing so