You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KotlinJSONParser is a simple and lightweight JSON parser written in Kotlin. It allows you to easily parse JSON strings into Kotlin objects.
4
+
This is mostly a toy project and with that less useful for normal usage. If you want to use a JSON parser, you should consider JSON parsers like [Jackson](https://github.com/FasterXML/jackson) or [Gson](https://github.com/google/gson).
5
+
6
+
## Features
7
+
8
+
- Lightweight and easy to use
9
+
- Built with Kotlin
10
+
- Simple API
11
+
12
+
## Getting Started
13
+
14
+
### Prerequisites
15
+
16
+
- Kotlin
17
+
- Gradle
18
+
19
+
### Usage
20
+
21
+
Here's a simple example of how to use KotlinJSONParser:
22
+
23
+
```kotlin
24
+
val jsonString ="""{"name": "John", "age": 30}"""
25
+
val json = jsonParse(jsonString)
26
+
27
+
println(json["name"]) // Output: John
28
+
println(json["age"]) // Output: 30
29
+
```
30
+
31
+
## License
32
+
This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.
0 commit comments