Hey,
Try API.fromJson(string json);instead of API.fromJsonArray(); it is possible that this method is now deprecated and both arrays and objects are being handled by fromJson() method.
I may be wrong. But it's worth a try.

Hey,
Try API.fromJson(string json);instead of API.fromJsonArray(); it is possible that this method is now deprecated and both arrays and objects are being handled by fromJson() method.
I may be wrong. But it's worth a try.

Click to expand...

I appreciate your answer, and i thought the same way, but check the head post. When im trying to use .fromJson() for arrays, i get an exception.
The only way to solve it, is to create a class with just one property of List type and convert it's object to/from json, but its a dirty way..
May be Network developers forgot to make a method toJsonArray public?

I appreciate your answer, and i thought the same way, but check the head post. When im trying to use .fromJson() for arrays, i get an exception.
The only way to solve it, is to create a class with just one property of List type and convert it's object to/from json, but its a dirty way..
May be Network developers forgot to make a method toJsonArray public?

Click to expand...

Yeah. That should be handled by toJsonArray() rather than selfmade dirty methods. We have to wait until devs give their word on this.