Skip to content

Commit 47149b5

Browse files
authored
Update README.md
Remove old code ref and add benchmark ref
1 parent 460d908 commit 47149b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@ val json5String = JSON5.stringify(data)
108108
If you were previously using the deprecated `parseToAny` method, here's how to migrate:
109109

110110
```kotlin
111-
// Old API (deprecated and removed)
112-
// val result = JSON5.parseToAny("""{"key": "value"}""")
113-
// val map = result as Map<String, Any?>
114-
115-
// New API - Type-safe approach (recommended)
116111
val result = JSON5.parse("""{"key": "value"}""")
117112
when (result) {
118113
is JSON5Value.Object -> {
@@ -252,6 +247,7 @@ This project uses [Gradle](https://gradle.org/) with Java 21:
252247
./gradlew build # Build the library
253248
./gradlew test # Run tests
254249
./gradlew check # Run all checks including tests
250+
./gradlew :benchmark:run # Runs the benchmark
255251
```
256252

257253
## License

0 commit comments

Comments
 (0)