text:
Q: How to convert Json string with adminbooster and call a value I am newbie trying to find a wordflow which makes it easy to convert JSON strings to apex I used adminbooster but get for example
public cls_0 0;
 public class cls_0 {

public cls_0 0; throws an error in the dev console
How do I make use of this use this in my callout and I am not shure but is [{},{}] a list in Json an {} an object. I managed to get thies working for a {} json string but below is giving me some trouble
[
  {
    "uid": "72852a55-5be3-496c-904c-fc3fd261f0a4",
    "childrenCount": 0,
    "lastName": "Raudin",
    "checkInDate": "2016-03-08",
    "checkOutDate": "2016-03-12",
    "status": "BOOKED",
    "adultCount": 1,
    "agency": {
      "uid": "4f6a3a32-6d57-450d-8b46-12547854",
      "name": "Responseev"
    },
    "property": {
      "uid": "4f6a3a32-6d57-450d-8b46-44abb3b01994",
      "isActive": true,
      "description": "This Point Reyes House is located on a quiet rural lane, 2 mns from the village of Point Reyes Station, just one hour north of downtown San Francisco.",
      "baseGuests": 4,
      "cleaningFeeAmount": 160,
      "baseDailyRate": 220,
      "acceptInstantBook": false,
      "bathrooms": "2",
      "maximumGuests": 6,
      "state": "California",
      "countryCode": "US",
      "securityDepositAmount": 500,
      "address1": "159 Campolindo Road",
      "webLink": "http://point-reyes-vacation-rental.com/",
      "address2": "",
      "externalID": "",
      "bedrooms": 2,
      "type": "HOUSE",
      "city": "Point Reyes Station",
      "picture": "https://www.orbirental.com/img/uploader/livingroom4_1.jpg",
      "postalCode": "94956",
      "name": "The Quail's Nest Cottage",
      "minimumStay": 1,
      "availabilityCalendarUrl" : "https://www.orbirental.com/calendar/232.ics",
      "photos": [
        {
          "url": "https://www.orbirental.com/img/uploader/view_0.jpg",
          "description" : "my house"
        }
      ],
      "floor": 2,
      "areaSize": 30,
      "areaSizeUnit": "SQUARE_METERS",
      "extraGuestFee": 50,
      "taxationRate": 12.5,
      "longitude" : 48.1914945,
      "latitude" : 19.1914945,
      "currency": "USD"
    },
    "stayDetails": {
       "departureDate": "2017-02-25 11:00:00.0",
       "arrivalDate": "2017-02-24 15:00:00.0",
       "extraNotes": "Some notes"
     },
    "notes": "",
    "email": "mike@yopmail.com",
    "phoneNumber": "415-322-2422",
    "cellphoneNumber": "415-888-6658",
    "firstName": "Cedric",
    "flightNumber": "XTF1PNS",
    "reasonForTrip": "Business",
    "preferredCurrency": "USD",
    "petCount": 1,
    "quoteAmount": 200,
    "source": "ORBIRENTAL_FORM",
    "city": "Irvine",
    "state": "California",
    "secondaryEmail": "mike@guest.airbnb.com"
  }
]

Aminbooster returns
public static fromJSON parse(String json){
        return (fromJSON) System.JSON.deserialize(json, fromJSON.class);
    }

Parsing returns empty []
List<fromJSON> MyClass = fromJSON.parse(response.getBody());

In this example how would I achieve the value arrivalDate from staydetails
Update Json:
[{"lastName":"Tester","notes":"","secondaryEmail":"","adultCount":0,"city":"tester","postalCode":"000000","source":"FORM","checkInDate":"2018-10-19","uid":"0000-0000-0000-0000-eeb619ba3be1","checkOutDate":"2018-10-31","countryCode":"US","quoteAmount":4083.5 ,"property":{"city":"Test","latitude":0,"type":"HOUSE","bathrooms":0,"photos":[],"picture":"http://staging.orbirental.com/img/littlehouse.png","bedrooms":0,"uid":"0000-0000-0000-0000-0000","maximumGuests":6,"acceptInstantBook":false,"cleaningFeeAmount":0,"areaSizeUnit":"SQUARE_FEET","name":"Test","securityDepositAmount":0,"currency":"USD","state":"Test","baseGuests":4,"floor":0,"availabilityCalendarUrl":"http://staging.orbirental.com/calendar/10042.ics","areaSize":0,"baseDailyRate":220,"minimumStay":2,"longitude":0},"stayDetails":{"extraNotes":"","departureDate":"2018-10-31 14:11:00.0","arrivalDate":"2018-10-19 14:11:00.0"},"modified":"2018-10-19 12:12:46.0","state":"Test","email":"test@test.nl","childrenCount":0,"petCount":0,"reasonForTrip":"","agency":{"uid":"0000-0000-0000-0000-0000","name":"Test"},"address2":"","address1":"tester","created":"2018-10-19 12:12:46.0","flightNumber":"","firstName":"Test","phoneNumber":"","status":"BOOKED","infantCount":0}]

A: Json2Apex by adminbooter acts funny when the JSON actually is not simple object but Array.
You have to bit tweak the generated code. As I can see from your code, your JSON is actually an element in an Array.
So you are not parsing an individual instance but an array, This is where adminboster is failing and making class like cls_0 0;
public class ResponseWrapper {
        public String uid;  //72852a55-5be3-496c-904c-fc3fd261f0a4
        public Integer childrenCount;   //0
        public String lastName; //Raudin
        public String checkInDate;  //2016-03-08
        public String checkOutDate; //2016-03-12
        public String status;   //BOOKED
        public Integer adultCount;  //1
        public cls_agency agency;
        public cls_property property;
        public cls_stayDetails stayDetails;
        public String notes;    //
        public String email;    //mike@yopmail.com
        public String phoneNumber;  //415-322-2422
        public String cellphoneNumber;  //415-888-6658
        public String firstName;    //Cedric
        public String flightNumber; //XTF1PNS
        public String reasonForTrip;    //Business
        public String preferredCurrency;    //USD
        public Integer petCount;    //1
        public Integer quoteAmount; //200
        public String source;   //ORBIRENTAL_FORM
        public String city; //Irvine
        public String state;    //California
        public String secondaryEmail;   //mike@guest.airbnb.com

        class cls_agency {
        public String uid;  //4f6a3a32-6d57-450d-8b46-12547854
        public String name; //Responseev
    }
    class cls_property {
        public String uid;  //4f6a3a32-6d57-450d-8b46-44abb3b01994
        public boolean isActive;
        public String description;  //This Point Reyes House is located on a quiet rural lane, 2 mns from the village of Point Reyes Station, just one hour north of downtown San Francisco.
        public Integer baseGuests;  //4
        public Integer cleaningFeeAmount;   //160
        public Integer baseDailyRate;   //220
        public boolean acceptInstantBook;
        public String bathrooms;    //2
        public Integer maximumGuests;   //6
        public String state;    //California
        public String countryCode;  //US
        public Integer securityDepositAmount;   //500
        public String address1; //159 Campolindo Road
        public String webLink;  //http://point-reyes-vacation-rental.com/
        public String address2; //
        public String externalID;   //
        public Integer bedrooms;    //2
        public String type; //HOUSE
        public String city; //Point Reyes Station
        public String picture;  //https://www.orbirental.com/img/uploader/livingroom4_1.jpg
        public String postalCode;   //94956
        public String name; //The Quail's Nest Cottage
        public Integer minimumStay; //1
        public String availabilityCalendarUrl;  //https://www.orbirental.com/calendar/232.ics
        public cls_photos[] photos;
        public Integer floor;   //2
        public Integer areaSize;    //30
        public String areaSizeUnit; //SQUARE_METERS
        public Integer extraGuestFee;   //50
        public Double taxationRate; //12.5
        public Double longitude;    //48.1914945
        public Double latitude; //19.1914945
        public String currency; //USD
    }
    class cls_photos {
        public String url;  //https://www.orbirental.com/img/uploader/view_0.jpg
        public String description;  //my house
    }
    class cls_stayDetails {
        public String departureDate;    //2017-02-25 11:00:00.0
        public String arrivalDate;  //2017-02-24 15:00:00.0
        public String extraNotes;   //Some notes
    }
    public static ResponseWrapper[] parse(String json){
        return (ResponseWrapper[]) System.JSON.deserialize(json, ResponseWrapper[].class);
    }
}

To get arrival date :
List<ResponseWrapper> respWrapperList = ResponseWrapper.parse(json);
if(respWrapperList!=null && !respWrapperList.isEmpty()){
System.debug(respWrapperList[0].stayDetails.arrivalDate);
}

redpajama_set_name: RedPajamaStackExchange


text:
Q: ASP.NET SSL Authentication Ticket Security? I intend to use SSL on the login form so that the username and password is encrypted during user login.
But, after the user has been authenticated, if I return to HTTP, the Autentication Cookie will be passed from client to server on each request. How safe is this? Obviously i'll use SSL on pages where the user is entering sensitive information, but for most of the time, for performance reasons, i'll just want them to remain authenticated and use HTTP.
I note that if I set RequiresSSL="True" in my forms authentication section in web.config then the authentication cookie is not passed if I use HTTP so I cannot identify the current user.
I guess my question is:
"Is it bad practice to set RequiresSSL="false" and allow the Authentication cookie to pass over HTTP"?

A: The forms authentication cookie is encrypted and checksumed with the machine key for your server if you set protection="All", so it's not particularly bad to drop back to HTTP.


The Ark was first and foremost a box made of wood. God didn't beam down a special box for them to use, he got the Israelites to use what they had … and what they had was very ordinary wood. We do often feel ordinary, but that's the perfect place to start.
The wood was Acacia, the most common wood in the desert where they wandered, and a hard, dry wood which was very durable. One of the reasons it lasted so long was that insects didn't like eating it. They didn't like it because whenever it was "traumatised" in any way, it would excrete substances which they didn't like the taste of. We may think that our struggles make us less durable, but in fact they build strength in us so that we are less prone to being nibbled away at.
Inside the Ark were three things: the stone tablets with the law on them, Aaron's rod which had budded and blossomed and a gold pot of manna. Those speak of three different "emphases" which we often have as Christians: the stone tablets as the Word, the budding rod as the worship/prayer life of the church (it budded when God established Aaron's tribe as the priestly tribe to oversee worship), and the golden pot of manna as the practical work of the kingdom (food and the meeting of everyday need). Though we all believe in all three, our personalities draw us more towards one than the others, and this can create tension in a congregation.
But the whole lot: the ordinary wood, the tablets, the rod and the pot of manna … they were all included in the Ark and they were all covered in gold, and gold symbolises God's glory. When we stand together as a church, committed to unity despite our diversity, then God covers us with his glory and shines through us by his Spirit. It's not always easy … church can feel more like wood than gold sometimes, but we need to remember that each of us is covered in gold, and we need to treat one another as valuable and precious, regardless of our differences.
The whole box was covered by the Atonement Cover – a beautiful prefiguring of the sacrifice of jesus which covers our imperfections, our brokenness and our pain, and makes us worthy to carry God's presence.
The cover was also sometimes known as the Mercy Seat. I have been part of The Salvation Army all my life, and the Mercy Seat has an important place in our history as a physical place in every Salvation Army where people can stop and meet with God. This was particularly relevant in the early days of the movement, when Salvation Army buildings were bustling and busy places, but there was always a space to meet with God.
As church, do we offer a "mercy seat" – space where people can always meet with God? As individuals, do we create "mercy seat" spaces in our lives to help people meet with God?
The cherubim on top of the cover were a sign of this being a place where God would "show up". As we commit to making mercy seat spaces in our everyday lives, helping people to connect with Jesus in whatever way we can, God promises to show up.


We offer a variety of payment methods for your to secure your booking. Please utilise the option which suit you best and we'll contact you directly to your registered email address as soon as payment has been confirmed as cleared. If you would prefer to pay with a payment card over the phone or should you have any questions, please do not hesitate to call us on 0800 77 97 095.
Company Name: Oris Medical Ltd.
Account Name: Oris Medical Ltd.
If you have a Paypal account, you are welcome to use this to settle your payment. Simply click the link provided on your invoice and you'll be directed to Paypal for secure payment.
We want you to buy with confidence, to that end please find below details of our refund and cancelation policy.
All bookings for training courses with Oris Medical are sold subject to the attendee holding appropriate qualifications and acceptance of our terms and conditions. Oris Medical reserves the right to decline any application for attendance.
Our training days offer a strictly limited number of places and are regularly oversubscribed. Bookings are secured once payment of course fees are received in full and are offered on a first come first served basis.
The sale of each place is a final, non-refundable transaction. Please ensure you understand this and fully intend to complete the course.
Upon payment, access details and passwords for training material is sent to the email address provided by the purchaser. The purchaser then has unlimited access to the material and has a place secured on our training day.
Once the purchaser has accessed the training material, they do not have the right to receive a refund.
The sale of each place is a final, non-refundable transaction and cannot be cancelled without penalty. Please ensure you understand this and fully intend to complete the course.
Purchasers who have booked onto a training course must notify Oris Medical without delay if they wish to cancel their booking. Penalties may apply depending on the time of cancellation.
Cancellations more than 1 month prior to the course date, you will receive refund less a £50 admin fee. Cancellations one month to two weeks prior to the course date, will receive 50% refund of the course fee. All cancellations within two weeks of the course date will result in no refund being made but we will endeavour to book a suitable alternative course date for the purchaser.
If the purchaser completes payment in error and the training material has not been accessed, we will issue a full refund within 72 hours of the transaction.
It is our customer's responsibility to provide their correct email address in order that the training material can be delivered by electronic means.
All outgoing emails from Oris Medical are logged on our system and we can monitor whether an email has been received and/or opened.
We are very careful to provide a detailed description of our training courses and what the purchaser should expect. On completion of the training course and the purchaser's attendance at the practical day, if they feel dissatisfied with the experience we are happy to provide a 100% refund.