Package org.auraframework.util.json

Examples of org.auraframework.util.json.JsonSerializationContext.format()


        ClientSideEventException e = (ClientSideEventException) value;
        JsonSerializationContext jsonCxt = Aura.getContextService().getCurrentContext().getJsonSerializationContext();
        Map<String, Object> serialized = Maps.newHashMap();
        serialized.put("exceptionEvent", Boolean.TRUE);
        serialized.put("event", e.getEvent());
        if (jsonCxt != null && jsonCxt.format()) {
            serialized.put("defaultHandler", e.getDefaultHandler());
        } else {
            serialized.put("defaultHandler", e.getDefaultHandler() == null ? null : e.getDefaultHandler().toString());
        }
        Json.serialize(serialized, out, jsonCxt);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.