Android-DDP icon indicating copy to clipboard operation
Android-DDP copied to clipboard

Can you add a method to use a JSONObject or JSONArray or JSON String instead of an array of objects?

Open jahirfiquitiva opened this issue 7 years ago • 1 comments

So basically, instead of using an array of objects for calls, subscriptions and others, we could use either a JSONObject or JSONArray or JSON text as String when calling the call or subscribe methods, and the toString() method of the first 2 things could do what we already have.

Right now, I find it really annoying that I have to create new objects for every type of call I want to do, this would come very very handy and I hope you consider adding it. Thank you.

jahirfiquitiva avatar Nov 03 '17 04:11 jahirfiquitiva

How could this ever be easier to write (and read) in code?

Could you show some example calls with both the current syntax and your proposed syntax so that we can see how it’s better?

Thanks!

ocram avatar Nov 05 '17 02:11 ocram