Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayecue/json
Supports basic json parse and stringify in greyscript
https://github.com/ayecue/json
Last synced: 15 days ago
JSON representation
Supports basic json parse and stringify in greyscript
- Host: GitHub
- URL: https://github.com/ayecue/json
- Owner: ayecue
- Created: 2023-03-26T15:45:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T22:42:36.000Z (6 months ago)
- Last Synced: 2024-07-27T23:53:06.663Z (6 months ago)
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON
Supports basic json parse and stringify in greyscript. Example project for greybel.
# Usage
```js
myJsonStr = JSON.stringify({ "test": 123 })print(myJsonStr) // prints json string
print(JSON.parse(myJsonStr)) // prints object
```# How to install
You require either [greybel-js](https://github.com/ayecue/greybel-js) or [greybel-vs](https://github.com/ayecue/greybel-vs).
## Via greybel-js
- Execute following command `greybel ./src/json.src . -i`
- Copy paste the content of `./build/installer0.src` into GreyHack CodeEditor.exe
- Execute build in CodeEditor.exe, this should install all files
- Open the json.src file via the CodeEditor.exe and build it as a library for you to use## Via greybel-vs
- Open `./src/json.src` in VS and press execute a build via the context menu
- Copy paste the content of `./build/installer0.src` into GreyHack CodeEditor.exe
- Execute build in CodeEditor.exe, this should install all files
- Open the json.src file via the CodeEditor.exe and build it as a library for you to use# How to test
```bash
greybel-execute ./test/index.src
```