Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

README.markdown 972 B

před 3 roky
12345678910111213141516171819202122232425262728293031323334
  1. jsonify
  2. =======
  3. This module provides Douglas Crockford's JSON implementation without modifying
  4. any globals.
  5. `stringify` and `parse` are merely exported without respect to whether or not a
  6. global `JSON` object exists.
  7. methods
  8. =======
  9. var json = require('jsonify');
  10. json.parse(source, reviver)
  11. ---------------------------
  12. Return a new javascript object from a parse of the `source` string.
  13. If a `reviver` function is specified, walk the structure passing each name/value
  14. pair to `reviver.call(parent, key, value)` to transform the `value` before
  15. parsing it.
  16. json.stringify(value, replacer, space)
  17. --------------------------------------
  18. Return a string representation for `value`.
  19. If `replacer` is specified, walk the structure passing each name/value pair to
  20. `replacer.call(parent, key, value)` to transform the `value` before stringifying
  21. it.
  22. If `space` is a number, indent the result by that many spaces.
  23. If `space` is a string, use `space` as the indentation.