Package org.qi4j.api.value.ValueSerializer

Examples of org.qi4j.api.value.ValueSerializer.Options


                        {
                            json.put( key, value );
                        }
                        else
                        {
                            String serialized = valueSerializer.serialize( new Options().withoutTypeInfo(), value );
                            // TODO Theses tests are pretty fragile, find a better way to fix this, Jackson API should behave better
                            if( serialized.startsWith( "{" ) )
                            {
                                json.put( key, new JSONObject( serialized ) );
                            }
View Full Code Here


        }
    }

    private String createAndEscapeJSONString( Object value )
    {
        return escapeJSONString( valueSerializer.serialize( new Options().withoutTypeInfo(), value ) );
    }
View Full Code Here

            serializeValueComposite( subject, predicate, (ValueComposite) property, valueType,
                                     graph, baseURI, includeNonQueryable );
        }
        else
        {
            String stringProperty = valueSerializer.serialize( new Options().withoutTypeInfo(), property );
            final Literal object = valueFactory.createLiteral( stringProperty );
            graph.add( subject, predicate, object );
        }
    }
View Full Code Here

TOP

Related Classes of org.qi4j.api.value.ValueSerializer.Options

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.