Prototype Javascript Framework

easing the pain of dynamic web applications

  • Prototype JS
  • Скачать
  • API документация
  • Обучающее руководство
  • Статьи
  • О проекте

Hash

  • clone
  • each
  • get
  • inspect
  • keys
  • merge
  • remove
  • set
  • toJSON
  • toObject
  • toQueryString
  • unset
  • update
  • values

API Документация

  • Полезные методы
  • Ajax
  • Array
  • Class
  • Date
  • Element
  • Element.Methods
  • Element.Methods.Simulated
  • Enumerable
  • Event
  • Form
  • Form.Element
  • Function
  • Hash
  • Insertion
  • Number
  • Object
  • ObjectRange
  • PeriodicalExecuter
  • Position
  • Prototype
  • String
  • Template
  • TimedObserver
  • document
  • document.viewport
  • Узнать больше о Prototype »

toJSON

toJSON() -> String

Returns a JSON string.

Example


$H({name: 'Violet', occupation: 'character', age: 25 }).toJSON();
//-> '{"name": "Violet", "occupation": "character", "age": 25}'
mariah carey anytime you need a friend
© 2006-2008 Prototype Core Team
© 2009 перевод Иванов Егор