public static Node valueToNode ( Object source ) { if ( source instanceof Node ) { return ( Node ) source ; } else { return converter . valueToNode ( source ) ; } }
Converts value to Json node . It can be Map String null or primitive . Should not be parsed just converted .