Skip to content

Commit 26a4e51

Browse files
committed
CHANGELOG.md updated and README.md fixed
1 parent 4e1905b commit 26a4e51

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v0.6
4+
- Presence of `kotlin-reflect` library is now unnecessary.
5+
- Parse configuration added. `iris.json.Configuration`
6+
- Added toJsonString and appendToJsonString
7+
38
## v0.5.2.1
49
- Important bug fix: Recursive class references to themselves caused Stack overflow exception
510

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Speed improvement is achieved by idea of Proxy pattern, where objects are create
1414

1515
Full source code on [iris/json/test/serialization.kt](https://github.com/iris2iris/iris-json-parser-kotlin/blob/master/test/iris/json/test/serialization.kt)
1616
````kotlin
17-
val item = IrisJsonParser("""{"id": 3,
17+
val item = JsonPlainParser.parse("""{"id": 3,
1818
|"person1": {"name": "Akbar", "age": 35, "cashAmount": 12200.12, "property": {"name": "Домик в деревне"}},
1919
|"type": "MaleFirst",
2020
|"person2": {"name": "Alla Who", "height": 170, "income": 1214.81}
21-
|}""".trimMargin()).parse()
21+
|}""".trimMargin())
2222

2323
val user: User = item.asObject<User>()
2424
println(user.person1)
@@ -62,8 +62,7 @@ Prepares full JSON-tree information. Useful when lots of fields are requested.
6262

6363
```kotlin
6464
// Demonstration of functional abilities
65-
val parser = IrisJsonParser(testString)
66-
val res = parser.parse() // parsed to IrisJsonItem's
65+
val res = JsonPlainParser.parse(testString) // parsed to IrisJsonItem's
6766

6867
// stringifies result objects
6968
println("IrisJsonItem.toString/JSON string: $res")

0 commit comments

Comments
 (0)