[RFC] - Easier Angular HttpClient serialization #63
Labels
documentation
Improvements or additions to documentation
help wanted
Extra attention is needed
question
Further information is requested
Easier Angular HttpClient serialization
Expose toPojo() in Serializable or make toJson() return a JsonObject (related to #59).
Motivation
In Angular, if you do something like:
... it tries to send the JSON string as
Content-type: text/plain
instead ofapplication/json
.Design Detail
Add a method to the Serializable class expose the internal serialized representation (the POJO before
JSON.stringify()
). In Angular you could then do:Drawbacks
Rationale and Alternatives
Alternatives:
Prior Art
Unresolved questions
The text was updated successfully, but these errors were encountered: