Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kedyn/simplejson
Allows manipulation of JSON.
https://github.com/kedyn/simplejson
Last synced: 30 days ago
JSON representation
Allows manipulation of JSON.
- Host: GitHub
- URL: https://github.com/kedyn/simplejson
- Owner: Kedyn
- License: mit
- Created: 2020-01-26T02:36:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-19T02:51:30.000Z (almost 5 years ago)
- Last Synced: 2024-11-07T13:56:07.025Z (3 months ago)
- Language: mIRC Script
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleJSON
Allows manipulation of JSON.
## Features
- Read from file.
- Read from text.
- Write to file.
- Add properties to an object.
- Gets value of property.
- Delete properties from an object.
- Stringifies an object.
- Type of properties.
- Name of properties.## Dependencies
- [SimpleJScripts](https://github.com/Kedyn/SimpleJScripts)
## Installation
Load `SimpleJSON.mrc` located in the root folder onto mIRC.
## Usage
### Identifier \$jsonCreate
```mirc-script
$jsonCreate(name[,file|text])
```Parses the file or text and puts it in a JavaScript object.
Returns 1 if the creation was a success, 0 otherwise.
### Identifier \$jsonSave
```mirc-script
$jsonSave(name,file)
```Saves the JSON object to the specified file.
Returns 1 if success, 0 otherwise.
### Identifier \$jsonAdd
```mirc-script
$jsonAdd(name,property[,property,...],value)
```Adds or changes a property value.
Returns 1 if success, 0 otherwise.
### Identifier \$jsonGet
```mirc-script
$jsonGet(name,property[,property...])
```Returns the value of the property.
### Identifier \$jsonDelete
```mirc-script
$jsonDelete(name,property[,property,...])
```Deletes an item.
Returns 1 if success, 0 otherwise.
### Identifier \$jsonStringify
```mirc-script
$jsonStringify(name)
```Returns the JSON object as a string.
### Identifier \$jsonTypeof
```mirc-script
$jsonTypeof(name[,property,...])
```Returns the type of the property or object.
### Identifer \$jsonKey
```mirc-script
$jsonKey(name,N)
```Returns the name of the N key.
### Identifier \$jsonDestroy
```mirc-script
$jsonDestroy(name)
```Returns 1 if success, 0 otherwise.
## License
This project is made available under the [MIT](https://choosealicense.com/licenses/mit/) License.
## Changelog
If you would like to see our changelog please read our [CHANGELOG.md](./CHANGELOG.md) file.