feat(v1.4.1): add native proposal module, Lover Accept Checker AI, and modules documentation catalog
This commit is contained in:
1 parent
4895c201c1
commit
b7ae6c9725
20 files changed
+600
-34
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# 📋 AiraLang `json` Module
|
||||
> **JSON Parsing & Serialization**
|
||||
|
||||
## Import
|
||||
```aira
|
||||
import "json";
|
||||
```
|
||||
|
||||
## Methods
|
||||
- `json.parse(json_string)`: Parse JSON string into AiraLang dictionary or list.
|
||||
- `json.stringify(obj, [indent=2])` / `json.mkstring()`: Serialize data structure to JSON.
|
||||
|
||||
## Example
|
||||
```aira
|
||||
import "json";
|
||||
|
||||
let obj = json.parse("{"status": "ok", "code": 200}");
|
||||
say obj["status"];
|
||||
```
|
||||
Reference in new issue
Block a user