You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2016/04/06 00:29:25 UTC

[jira] [Commented] (JOHNZON-71) Split Mapper into Generator and Parser parts

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

Reinhard Sandtner commented on JOHNZON-71:
------------------------------------------

moved the read mapping logic to {{MappingParser}} as discussed in the hangout with [~struberg]...

you can find my commits here https://github.com/apache/incubator-johnzon/compare/master...rsandtner:JOHNZON-71-parser

> Split Mapper into Generator and Parser parts
> --------------------------------------------
>
>                 Key: JOHNZON-71
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-71
>             Project: Johnzon
>          Issue Type: Bug
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>
> I like to get something similar to 
> {code}
> public interface ObjectConverter<T> {
>    void writeJson(T instance, JsonbGenerator jsonbGenerator);
>    T fromJson(JsonbParser jsonbParser, Type targetType);
> }
> {code}
> To get this done we need to split the Mapper into Reader and Writer parts.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)