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:
-
itemObject | Arraythe JSON-parsed object which the date-string fields should be transformed into Dates.
-
cloneBoolean=falsewhether to clone
itemand leave it unspoiled. Cloning means a performancehit, better leave itfalse, which will lead into changingitemwhich in fact will equal the returnvalue.
