Package org.codehaus.jackson

Examples of org.codehaus.jackson.JsonGenerator.writeTree()


        node.put("active", meeting.isActive());
        node.put("modified", makeNode(meeting.getModifiedDate()));
        node.put("published", makeNode(meeting.getPublishDate()));
        node.put("dataSources", makeArrayNode(meeting.getDataSources()));
        JsonGenerator generator = this.jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8);
        generator.writeTree(node);
        generator.close();
    }

    public Meeting readMeeting(Reader reader) throws JsonProcessingException, IOException
    {
View Full Code Here


        node.put("active", agenda.isActive());
        node.put("modified", makeNode(agenda.getModifiedDate()));
        node.put("published", makeNode(agenda.getPublishDate()));
        node.put("dataSources", makeArrayNode(agenda.getDataSources()));
        JsonGenerator generator = this.jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8);
        generator.writeTree(node);
        generator.close();
    }

    public Transcript readTranscript(Reader reader) throws JsonProcessingException, IOException
    {
View Full Code Here

        node.put("year", bill.getSession());
        node.put("uniBill", bill.isUniBill());
        node.put("amendments", makeArrayNode(bill.getAmendments()));
        node.put("votes", makeArrayNode(bill.getVotes()));
        JsonGenerator generator = this.jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8);
        generator.writeTree(node);
        generator.close();
    }

    public Bill readBill(Reader reader) throws JsonProcessingException, IOException
    {
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.