UNPKG

peb

Version:
16 lines (15 loc) 820 B
# Function `parseJson()` and `stringifyJson()` **The last updated version of this function**: *3.1.0* ## Browser Support | <img src="https://cdn.jsdelivr.net/gh/TechPot-Studio/svg-gallery/chrome.svg" width="30" /> | <img src="https://cdn.jsdelivr.net/gh/TechPot-Studio/svg-gallery/firefox.svg" width="30" /> | <img src="https://cdn.jsdelivr.net/gh/TechPot-Studio/svg-gallery/safari.svg" width="30" /> | <img src="https://cdn.jsdelivr.net/gh/TechPot-Studio/svg-gallery/opera.svg" width="30" /> | <img src="https://cdn.jsdelivr.net/gh/TechPot-Studio/svg-gallery/edge.svg" width="30" /> | | :---: | :---: | :---: | :---: | :---: | | Yes | Yes | Yes | Yes | Yes | ## Usage ```javascript peb.parseJson(str: string) ``` Parse json string to object ```javascript peb.stringifyJson(obj: object) ``` Parse object to json string