[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/yuilib/2in3/2.9.0/build/yui2-json/ -> yui2-json-debug.js (summary)

Provides methods to parse JSON strings and convert objects to JSON strings.

File Size: 546 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  _char()
  _revive()
  _prepare()
  _isSafe()
  _parse()
  _type()
  _string()
  _indent()
  _stringify()
  _serialize()
  _zeroPad()

Functions
Functions that are not part of a class:

_char(c)   X-Ref
No description

_revive(data, reviver)   X-Ref
Traverses nested objects, applying a filter or reviver function to
each value.  The value returned from the function will replace the
original value in the key:value pair.  If the value returned is
undefined, the key will be omitted from the returned object.

param: data {MIXED} Any JavaScript data
param: reviver {Function} filter or mutation function
return: {MIXED} The results of the filtered/mutated data structure

_prepare(s)   X-Ref
Replace certain Unicode characters that may be handled incorrectly by
some browser implementations.

param: s {String} parse input
return: {String} sanitized JSON string ready to be validated/parsed

_isSafe(str)   X-Ref
No description

_parse(s,reviver)   X-Ref
No description

_type(o)   X-Ref
No description

_string(s)   X-Ref
No description

_indent(s,space)   X-Ref
No description

_stringify(o,w,space)   X-Ref
No description

_serialize(h,key)   X-Ref
No description

_zeroPad(v)   X-Ref
Serializes a Date instance as a UTC date string.  Used internally by
the JavaScript implementation of stringify.  If you need a different
Date serialization format, override this method.  If you change this,
you should also set useNativeStringify to false, since native JSON
implementations serialize Dates per the ECMAScript 5 spec.  You've been
warned.

param: d {Date} The Date to serialize
return: {String} stringified Date in UTC format YYYY-MM-DDTHH:mm:SSZ



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1