• ujjwal Singh 11
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Does Apex support variable arity or varargs?

 

I'm trying to make a flexible JS remoting method that accepts input from a variety of forms and would rather not have to change the signature of my method every time I modify the fields. I was using JSON but the JSONObject class from json.org isn't robust enough and has bugs.

 

Varargs doesn't seem to be supported either. Any ideas? If not it looks like I'll just have to make a bunch of different functions or ditch JS remoting, make a dummy page, and then send a POST to that and pull out the page params.