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.