P PHB2 Member Licensed User Longtime User Jun 14, 2012 #1 In the c# NewtonSoft.JSON implementation you can do the following: B4X: MyClass jsonResp = JsonConvert.DeserializeObject<MyClass>(data); Is this possible in b4a?
In the c# NewtonSoft.JSON implementation you can do the following: B4X: MyClass jsonResp = JsonConvert.DeserializeObject<MyClass>(data); Is this possible in b4a?
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2012 #2 It is possible to create a general class that with reflection writes other classes. Currently there is no such available. However you can create a simple ToJSON sub in your classes that each class will implement. Upvote 0
It is possible to create a general class that with reflection writes other classes. Currently there is no such available. However you can create a simple ToJSON sub in your classes that each class will implement.
P PHB2 Member Licensed User Longtime User Jun 14, 2012 #3 Hi Erel Thanks. In the absence of a better plan I already started the code for your 2nd suggestion. Thanks Upvote 0
Hi Erel Thanks. In the absence of a better plan I already started the code for your 2nd suggestion. Thanks