Package org.amplafi.json

Examples of org.amplafi.json.IJsonWriter


        for(FlowPropertyDefinition definition: values) {
            resolve(context, definition);
        }
    }
    public IJsonWriter getJsonWriter() {
        IJsonWriter writer = new JSONStringer(new MapByClass<JsonRenderer<?>>(this.jsonRenderers));
        return writer;
    }
View Full Code Here


    @Override
    public <T> Object serialize(FlowPropertyDefinition flowPropertyDefinition, T value) {
        if ( value == null) {
            return null;
        } else {
            IJsonWriter jsonWriter = this.serialize(flowPropertyDefinition, null, value);
            String strV = jsonWriter.toString();
            // TODO: trimming quotes is probably not needed anymore - CharSequenceFlowTranslator uses unquote...
            if (strV != null && strV.startsWith("\"") && strV.endsWith("\"")) {
                // trim off unneeded " that appear when handling simple objects.
                strV = strV.substring(1, strV.length()-1);
            }
View Full Code Here

TOP

Related Classes of org.amplafi.json.IJsonWriter

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.