Skip to content

@class misorder on serialization #165

@astrocoder

Description

@astrocoder

I am serializing using the following constructor:

Genson genson = new GensonBuilder()
.useClassMetadata(true)
.useFields(true)
.useRuntimeType(true)
.setSkipNull(true)
.useStrictDoubleParse(true)
.useClassMetadataWithStaticType(true)
.create();

However, the @Class declaration is not always the first property in the json. My classes are rather simple, but nested. I'm using only public fields. Would there be any reason for this or is there a way to force an ordering on the fields on serialization? Finally, I've tried a few different optoins on the Genson builder but always get the same result. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions