{"json_modified": "2016-03-28T08:01:47.503425", "uuid": "a43580b7-2ff5-4ba8-8485-98c7e2f5e999", "title": "JS_GetStringBytes", "url": "/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringBytes", "tags": ["Obsolete", "SpiderMonkey", "JSAPI Reference"], "translations": [], "modified": "2014-12-28T06:04:58", "label": "JS_GetStringBytes", "localization_tags": [], "locale": "en-US", "id": 6221, "last_edit": "2014-12-28T06:04:52", "summary": "JS_GetStringBytes and JS_GetStringBytesZ convert the specified JavaScript string, str, to a C string (an array of 8-bit chars). If JS_CStringsAreUTF8 is true, then the returned string is UTF-8, and the conversion is lossless. Otherwise the high byte is simply dropped from each jschar. On success, the return value is a pointer to the char array, which is null-terminated. On failure, JS_GetStringBytes returns a pointer to a null-terminated empty string; JS_GetStringBytesZ returns NULL.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Description", "title": "Description"}, {"id": "See_Also", "title": "See Also"}], "slug": "Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringBytes", "review_tags": []}