declex icon indicating copy to clipboard operation
declex copied to clipboard

Permit the use of @JsonSerializedModel in initializations

Open smaugho opened this issue 7 years ago • 0 comments

Permit the use of @JsonSerializedModel in initializations. Also be able to provide in the query a JSON object as String.. so something like this can be done:

@Model(query="{\"name\":\"John\"}")
@JsonSerializedModel
User_ user;

//============OR==========

//json is a variable with a Json String;
$GetModel(user).query(json);

The priority of execution to get this model is after the @ServerModel... This model doesn't provide a putModel, since it doesn't store to any storage interface.

smaugho avatar Feb 17 '17 01:02 smaugho