Skip to content

Automatically encode Java objects when set as properties with the Element API #4731

@marcushellberg

Description

@marcushellberg

When I use the Element API, I would like to be able to call setProperty('foo', myJavaObject) and have the Java object automatically serialized to JSON the same way as the PolymerTemplateModel does. Using the setJsonProperty() method requires using Flow internal classes for serializing to JsonObject.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions