<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using custom types with Automation REST APIs in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/using-custom-types-with-automation-rest-apis/m-p/316537#M3538</link>
    <description>&lt;P&gt;I am trying to use Jackson to serialize/deserialize custom types returned by my custom automation operations, but I am having little success so far.
On the server side I have been able to register a new Codec that uses a Jackson ObjectMapper to write out the JSON, and that works fine.&lt;/P&gt;
&lt;P&gt;On the client side however, JsonMarshalling strips the object &amp;amp; entity type tokens before going into the configured custom marshaller, and as a result that marshaller can't directly use Jackson (which wants the start object tag).&lt;/P&gt;
&lt;P&gt;Is there any way to leverage the automation APIs and still benefit from what Jackson supports of the box (generic object serializing, JAXB/Jackson annotated objects, Java collections...)?&lt;/P&gt;
&lt;P&gt;Ultimately I am trying to write an operation that returns the results of a QueryAndFetch call as a Java List of Java Maps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[ { "ecm:uuid": owieruoru, "dc:title": "Document 1" }, ... ]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2012 13:45:52 GMT</pubDate>
    <dc:creator>franck102_</dc:creator>
    <dc:date>2012-10-24T13:45:52Z</dc:date>
    <item>
      <title>Using custom types with Automation REST APIs</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-custom-types-with-automation-rest-apis/m-p/316537#M3538</link>
      <description>&lt;P&gt;I am trying to use Jackson to serialize/deserialize custom types returned by my custom automation operations, but I am having little success so far.
On the server side I have been able to register a new Codec that uses a Jackson ObjectMapper to write out the JSON, and that works fine.&lt;/P&gt;
&lt;P&gt;On the client side however, JsonMarshalling strips the object &amp;amp; entity type tokens before going into the configured custom marshaller, and as a result that marshaller can't directly use Jackson (which wants the start object tag).&lt;/P&gt;
&lt;P&gt;Is there any way to leverage the automation APIs and still benefit from what Jackson supports of the box (generic object serializing, JAXB/Jackson annotated objects, Java collections...)?&lt;/P&gt;
&lt;P&gt;Ultimately I am trying to write an operation that returns the results of a QueryAndFetch call as a Java List of Java Maps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[ { "ecm:uuid": owieruoru, "dc:title": "Document 1" }, ... ]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 13:45:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-custom-types-with-automation-rest-apis/m-p/316537#M3538</guid>
      <dc:creator>franck102_</dc:creator>
      <dc:date>2012-10-24T13:45:52Z</dc:date>
    </item>
  </channel>
</rss>

