B b4auser1 Well-Known Member Licensed User Longtime User Jan 3, 2016 #1 It would be great to have an option to serialize B4xObjects not only to bytes array, but to JSON structure as well. Someting like this: Code: Copy Type A_Type (a As String, b As Int) Dim a As A_Type Dim a_json_string As String = B4Xserializator.ConvertObjectToJSON(a) === Dim a As A_Type = B4Xserializator.ConvertJSONToObject(a_json_string)
It would be great to have an option to serialize B4xObjects not only to bytes array, but to JSON structure as well. Someting like this: Code: Copy Type A_Type (a As String, b As Int) Dim a As A_Type Dim a_json_string As String = B4Xserializator.ConvertObjectToJSON(a) === Dim a As A_Type = B4Xserializator.ConvertJSONToObject(a_json_string)
Erel B4X founder Staff member Licensed User Longtime User Jan 3, 2016 #2 What is the use case? You will only be able to use the serialized string from other B4X products anyway. Creating a json string from a Map or List is very simple.
What is the use case? You will only be able to use the serialized string from other B4X products anyway. Creating a json string from a Map or List is very simple.
B b4auser1 Well-Known Member Licensed User Longtime User Jan 3, 2016 #3 IoT (Internet of Things) - What do you think? Erel said: You will only be able to use the serialized string from other B4X products anyway. Click to expand... I can serialize B4x type to JSON and ask others (F.e. Arduino sketch developers) to provide JSON with the same structure. On B4x side it will be simple ConvertObjectToJSON/ConvertJSONToObject.
IoT (Internet of Things) - What do you think? Erel said: You will only be able to use the serialized string from other B4X products anyway. Click to expand... I can serialize B4x type to JSON and ask others (F.e. Arduino sketch developers) to provide JSON with the same structure. On B4x side it will be simple ConvertObjectToJSON/ConvertJSONToObject.