JSON Class
Pollyfils for often used functionality for Arrays Copyright (c) 2014 ITSA - https://github.com/itsa New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
Item Index
Methods
- isObject static
- parseWithDate
Methods
isObject
(
Object | Array
static
-
item
-
clone
Transforms String
-properties into true Date-objects in case they match the Date-syntax.
To be used whenever you have parsed a JSON.stringified object without a Date-reviver.
Parameters:
-
item
Object | Arraythe JSON-parsed object which the date-string fields should be transformed into Dates.
-
clone
Boolean=falsewhether to clone
item
and leave it unspoiled. Cloning means a performancehit, better leave itfalse
, which will lead into changingitem
which in fact will equal the returnvalue.