stringify

converts object data into a string

string stringify(object| array obj);
objobject| arrayobject to convert
stringresulting string

Example

var str = webix.stringify({title:"Webix 4.3", released: new Date(2017, 3, 29)});
//returns {"title":"Webix 4.3","released":"2017-04-29 00:00"}

Details

Converting dates to strings

The method performs the same operation as JSON.stringify(), but converts date objects into strings according to the current webix.i18n.parseFormat, which is "%Y-%m-%d %H:%i:%s" for the default "en-US" locale. To alter it globally, follow the related article.

Usage in library

The method is used by Webix for the following operations:

Back to top