JavaScript JSON.stringify()
Postado 2023-05-10 22:18:01
0
6KB
A common use of JSON is to exchange data to/from a web server. When sending data to a web server, the data has to be a string. Here's an example:
const arr = ["John", "Peter", "Sally", "Jane"];
const myJSON = JSON.stringify(arr);
Pesquisar
Categorias
- Arts
- Business
- Computers
- Jogos
- Health
- Início
- Kids and Teens
- Money
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Leia mais
Skyscrapers
A skyscraper is a very tall (or very long, see horizontal skyscraper) multi-storey building with...
Blooming Beauties: The Joys of Shopping for Flowers
Blooming Beauties: The Joys of Shopping for Flowers
In the tapestry of nature's wonders, few...
How to effectively resolve conflicts in a team? Guide from the HR Director
How to effectively resolve conflicts in a team? Guide from the HR Director
One colleague...
Witness for the Prosecution. (1957)
A veteran British barrister must defend his client in a murder trial that has surprise after...
Macroeconomic perspectives on demand and supply
Key points
Keynes’ Law states that demand creates its own supply....