Skip to content

Json serialization include one child property #566

Description

@dtelaroli

I wanna include only the primary key from all classes.
The include method in json representation not accept include a child property directly.

e.g

result.use(json()).include("myObj.id").serialize();

if I include the root property, all properties will be serializeds, unnecessarily

I think that should be cool have this feature, generating more light jsons without excluding individuals properties.

What do you think? Is it viable?

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