[ 
https://issues.apache.org/jira/browse/OAK-6476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16095809#comment-16095809
 ] 

Chetan Mehrotra commented on OAK-6476:
--------------------------------------

Following encoding is used by the serializer for inferring the types of 
properties based on value. You need to define the encoding only for following. 
Would later document it properly in docs

||JCR Type|| Prefix|| Example||
|pat|Path   | pat:/content|
|dec|Decimal|dec:3.14159|
|uri|URI    |uri:http://foo|
|str|String |If the string starts with namespace like jcr:path then it needs to 
be encoded like str:jcr:path|
|ref|Reference|ref:/foo|
|wea|WeakReference|wea:/foo|
|dat|Date   |dat:2017-07-20T13:23:21.196+05:30|
|:blobId|Binary |:blobId:<blob id value>|
|nam|Name   |nam:nt:base|

> Support deserializing json as NodeState
> ---------------------------------------
>
>                 Key: OAK-6476
>                 URL: https://issues.apache.org/jira/browse/OAK-6476
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: store-spi
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.8, 1.7.5
>
>         Attachments: OAK-6476-v1.patch
>
>
> Oak has JsonSerializer in oak-store-spi which supports serializing the 
> NodeState as json (preserving the property types). For OAK-6471 I need a way 
> to deserialize this json as NodeState.
> So I would like to implement a JsonDeserializer which does the reverse. This 
> would be based on logic already implemented in 
> [KernelNodeState|https://github.com/apache/jackrabbit-oak/blob/1.0/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to