Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jahirfiquitiva opened this issue Nov 3, 2017 · 1 comment
Labels

Comments

@jahirfiquitiva
Copy link

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.

@ocram ocram added the question label Nov 5, 2017
@ocram
Copy link
Contributor

ocram commented Nov 5, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants