I just hit a weird little snag related to posting arguments to a core.
Most of the examples I’ve seen show REST API accessible functions dealing with arguments like so:
int myFunction(String args) {
int arg1 = args.substring(0,1));
String arg2 = args.substring(3,8);
// ...
return 1;
}
The problem I’m running into is that my first argument might vary in length, as might my second.
What I’d like to be able to do is pass in a traditional query string as an argument, then parse each of its keys and values. Question is - is there an existing Spark API way of doing this, or should I write a query string parser?



. But it’s very important for me to finish this project, so could you be so kind to post the correct code? I would be very thankful!!