Basically I am calling a Server and expect a JSON response. The complication is when I need to pass the parameter which is in the form of JSON. The initial outcome of my thought process was to have a file that has the JSON input and can be modified according to the individual commands.
This approach is cumbersome for the end user as it has to tweak many values in JSON, so the initial research fails.
Here I am in midst of either creating a wrapper that generates the JSON to be sent, around the current application which takes JSON as an input file. So the logic remains the same but the wrapper processes the input and creates a input file which is internally given to the existing application.
But again the problem lies in "How can you create Wrapper that creates the JSON". Isn't it the same old logic ?
My possible parameters expected by server changes with each command.
Any design pattern is suggested here ? Please let me know in case of further explanation is required.