You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the binary data is serialized into JSON, we have observed that project_id field appears as member of sequence along with property packet? Also in the Kaitai generated files of GoLanguage, this params appears as a member variable of abc2 struct as well.
As per my understanding, this is default behavior of kaitai. In Kaitai Struct, when you define parameters in your KSY file, these parameters are often included as member variables in the generated classes (Go structs or Java classes). This is because the parameters are essential for the parsing logic and are treated as part of the object’s state. When these objects are serialized into JSON, the parameters appear as member variables.
Kindly confirm above behavior.
How can we remove the appearance of params as member variables? We dont want that params to be appear as field in the serialized JSON. Is there any better approach to achieve that?
The text was updated successfully, but these errors were encountered:
Consider below ksy file
When the binary data is serialized into JSON, we have observed that project_id field appears as member of sequence along with property packet? Also in the Kaitai generated files of GoLanguage, this params appears as a member variable of abc2 struct as well.
As per my understanding, this is default behavior of kaitai. In Kaitai Struct, when you define parameters in your KSY file, these parameters are often included as member variables in the generated classes (Go structs or Java classes). This is because the parameters are essential for the parsing logic and are treated as part of the object’s state. When these objects are serialized into JSON, the parameters appear as member variables.
Kindly confirm above behavior.
How can we remove the appearance of params as member variables? We dont want that params to be appear as field in the serialized JSON. Is there any better approach to achieve that?
The text was updated successfully, but these errors were encountered: