FasterXML / jackson-future-ideas

Repository for SOLE PURPOSE of issue tracker and Wiki for NEW IDEAS. Please: NO BUG REPORTS.
18 stars 6 forks source link

Adding YASMIN-RPC Support #13

Open cyberphone opened 7 years ago

cyberphone commented 7 years ago

https://cyberphone.github.io/doc/web/yasmin.html#apimapping

This may either be a Spring or CXF feature. The signature option requires that Jackson can deal with ES6 compatible serialization.

cowtowncoder commented 7 years ago

You need to be bit more specific explaining what kind of support you would be thinking. Jackson does not support RPC at all (that's a layer above), although JAX-RS providers published are sort of similar I suppose.

cyberphone commented 7 years ago

From the Jackson horizon, ES6 compatible serialization would (minimally) be enough, RPC would be provided by Spring or CXF. Signature support could either be provided in Jackson or in RPC frameworks. In my own software, signatures have been integrated in the JSON tools: https://cyberphone.github.io/doc/openkeystore/javaapi/org/webpki/json/JSONObjectWriter.html#setSignature-org.webpki.json.JSONSigner-

cowtowncoder commented 7 years ago

ES6 compatible serialization, outlining specifics, would fall under jackson-core I assume. Would this entail something other than try to limit range of 64-bit longs and such?

cyberphone commented 7 years ago

The only thing missing is the conversion of Number to String according to ES6's very specific scheme. Assuming that Jackson is able maintaining property order "as received" during serialization, all would then be there to support signing JSON objects with ease.

cowtowncoder commented 7 years ago

Ah. No wonder this sounded familiar:

https://github.com/FasterXML/jackson-core/issues/252

cyberphone commented 7 years ago

Yes, it has only grown a bit since last time with Spring or CXF integration in mind.