Package com.fasterxml.jackson.databind.node

Examples of com.fasterxml.jackson.databind.node.ArrayNode.addObject()


      shortVarNode.put("value", 123);
      shortVarNode.put("scope", "local");
      shortVarNode.put("type", "short");
     
      // Long
      ObjectNode longVarNode = requestNode.addObject();
      longVarNode.put("name", "longVariable");
      longVarNode.put("value", 4567890L);
      longVarNode.put("scope", "local");
      longVarNode.put("type", "long");
     
View Full Code Here


      longVarNode.put("value", 4567890L);
      longVarNode.put("scope", "local");
      longVarNode.put("type", "long");
     
      // Double
      ObjectNode doubleVarNode = requestNode.addObject();
      doubleVarNode.put("name", "doubleVariable");
      doubleVarNode.put("value", 123.456);
      doubleVarNode.put("scope", "local");
      doubleVarNode.put("type", "double");
     
View Full Code Here

      doubleVarNode.put("value", 123.456);
      doubleVarNode.put("scope", "local");
      doubleVarNode.put("type", "double");
     
      // Boolean
      ObjectNode booleanVarNode = requestNode.addObject();
      booleanVarNode.put("name", "booleanVariable");
      booleanVarNode.put("value", Boolean.TRUE);
      booleanVarNode.put("scope", "local");
      booleanVarNode.put("type", "boolean");
     
View Full Code Here

     
      // Date
      Calendar varCal = Calendar.getInstance();
      String isoString = getISODateString(varCal.getTime());
     
      ObjectNode dateVarNode = requestNode.addObject();
      dateVarNode.put("name", "dateVariable");
      dateVarNode.put("value", isoString);
      dateVarNode.put("scope", "local");
      dateVarNode.put("type", "date");
             
View Full Code Here

        if (timeZone != null) {
            request.put("timeZone", timeZone);
        }

        ArrayNode node = request.putArray("items");
        node.addObject().put("id", calendarId);


        String url = "https://www.googleapis.com/calendar/v3/freeBusy";

        // perform POST request
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.