<?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 Re:  How to map node's properties from JSON format to Map&amp;lt;QName, Serializable&amp;gt; Java object? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-map-node-s-properties-from-json-format-to-map-lt-qname/m-p/294135#M247265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alfresco typically uses JSON object types for transporting request / response data without using types. This is due to the fact that type conversion is automatically handled in Alfresco internals when setting property values, e.g. when you set the String "en" as the value of a d:locale property then Alfresco automatically converts that to a Java locale object. You do not need to handle the conversion yourself in most cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do want to handle the conversion then you need to use the dictionary service to lookup the definition of a property by its QName, obtain the datatype definition for the property's type and use the DefaultTypeConverter.INSTANCE.convert(dataTypeDefinition, value) global utility to perform the conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 15:54:49 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2016-12-13T15:54:49Z</dc:date>
    <item>
      <title>How to map node's properties from JSON format to Map&lt;QName, Serializable&gt; Java object?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-map-node-s-properties-from-json-format-to-map-lt-qname/m-p/294134#M247264</link>
      <description>Hello,I have a JSON representation of the&amp;nbsp;properties of a node:"properties": {"{http://www.alfresco.org/model/content/1.0}email": "admin@alfresco.com","{http://www.alfresco.org/model/content/1.0}homeFolder": {"storeRef": {"protocol": "workspace","identifier": "SpacesStore"},"id": "b2e97ee9-1154-411e</description>
      <pubDate>Wed, 07 Dec 2016 14:19:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-map-node-s-properties-from-json-format-to-map-lt-qname/m-p/294134#M247264</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-12-07T14:19:05Z</dc:date>
    </item>
    <item>
      <title>Re:  How to map node's properties from JSON format to Map&lt;QName, Serializable&gt; Java object?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-map-node-s-properties-from-json-format-to-map-lt-qname/m-p/294135#M247265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alfresco typically uses JSON object types for transporting request / response data without using types. This is due to the fact that type conversion is automatically handled in Alfresco internals when setting property values, e.g. when you set the String "en" as the value of a d:locale property then Alfresco automatically converts that to a Java locale object. You do not need to handle the conversion yourself in most cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do want to handle the conversion then you need to use the dictionary service to lookup the definition of a property by its QName, obtain the datatype definition for the property's type and use the DefaultTypeConverter.INSTANCE.convert(dataTypeDefinition, value) global utility to perform the conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 15:54:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-map-node-s-properties-from-json-format-to-map-lt-qname/m-p/294135#M247265</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-13T15:54:49Z</dc:date>
    </item>
  </channel>
</rss>

