iOS Question Json to Type and Type to Json

narek adonts

Well-Known Member
Licensed User
Longtime User
Hi,

I would like to know if there is away to convert a json string to custom Type and vice versa (something like google gson).
I think the solution is implemented already as Read/WriteB4X object are doing something similar but it saved as bytes.
So maybe somebody know the solution behind.

Narek
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

narek adonts

Well-Known Member
Licensed User
Longtime User
You were right. It is faster and it much smaller then json string(compressed).
Will be happy to use it.
But maybe you should make the WriteB4XObject/ReadB4XObject open source or publish the algorithm so we will be able to use it if we will decide to switch the Server side app.

Narek
 
Upvote 0
Top