This project has moved. For the latest updates, please go here.
1

Closed

Various Fixes to SPXmlToJSON

description

There are times (no discernible pattern) when date/time values are returned like "2014-01-12 00:00:00". Without the "T" to split the date and time, conversion fails. This fixes it:
    function dateToJsonObject(s) {

        if (s.charAt(10) == " ") {
            s = s.slice(0, 10) + "T" + s.slice(11, s.length);
        }
        return new Date(s);
    }
In userToJsonObject, the userId wasn't set correctly. Changed from:
                    userId: thisUser.Id,
to
                    userId: thisUser.id,
Closed Dec 17, 2014 at 4:19 PM by sympmarc
Mistakenly didn't close these issues when 2014.01 was released.

comments

sympmarc wrote Jan 26, 2014 at 8:32 PM

Implemented in 2014.01ALPHA1

sympmarc wrote Jan 28, 2014 at 5:14 PM

Added "Number" case in 2014.01ALPHA2