Re: GSOC idea: json api for plone
"Jens W. Klein" <jens-/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Organization | Klein & Partner KG |
| Message-ID | <[email protected]> |
On 2014-02-25 08:26, Asko Soukka wrote: > Sean Upton wrote: >>> IMO it would be a good start to make all plone.api calls available as >>> json-rpc. Also (with some level of abstraction on serialization/ >>> deserialization) then it is easy to get at the same time an xmlrpc api. >> >> +1 to abstracting serialization model. > > How should this relate to plone.rfc822 > (https://pypi.python.org/pypi/plone.rfc822), which AFAIK is the current > standard serialization/deserialization model? Plone already had this rfc822 style in back in old archetypes marshallers. I never liked it. It was clumsy to handle I like the base idea behind: Add additional information to the schema where needed an use it to serialize it. The same is possible with deserialization. > I've used the existing rfc822-API+adapters a little to turn > Dexterity-objects into JSON and back (for new objects or sync older > ones), but of course, some defaults there (datetime, blobs) may not be > optimal for client-side js. I dont think rfc822 headers are what we want to have. In json there are better suited structures around. It would end up in a text-block packaged in json, the client has to parse the text block again. Too much. For sure is json-ld a possible one (and it would add other benefits). json-ld is (as rfc822 too) in fact more about exchanging metadata than about serialization of content. json-ld as payload for deserialization might work too. But we may need a container format around, for the binary data and other payloads not considered to be metadata. Jens -- Klein & Partner KG, member of BlueDynamics Alliance ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk