kon

Kotlin Object Notation - Lightweight DSL to build fluid JSON trees

APACHE-2.0 License

Stars
46

Bot releases are visible (Hide)

kon - 1.1.4 Latest Release

Published by mpetuska almost 3 years ago

Build Versions

  • JVM: 11
  • Gradle: 7.3.2
  • Kotlin: 1.6.10

Changes

  • Upgraded versions
    • Kotlin 1.6.10
    • Serialization 1.3.1
    • Coroutines 1.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/mpetuska/kon/compare/v1.1.3...1.1.4

kon - v1.1.3

Published by mpetuska almost 3 years ago

Build Versions

  • JVM: 11
  • Gradle: 7.2
  • Kotlin: 1.5.31

Breaking Changes

  • All kon-core module code moved one package up from dev.petuska.kon to dev.petuska.kon.core

Changes

  • Android support (somehow I've missed it initially...)
kon - v1.1.2

Published by mpetuska almost 3 years ago

Build Versions

  • JVM: 11
  • Gradle: 7.2
  • Kotlin: 1.5.31

Changes

  • Typesafe versions of KON and KObject to improve extensibility and allow restricting value types.
kon - v1.1.1

Published by mpetuska almost 3 years ago

Changes

  • New safe array setter "key".to[1] that works with single int arrays
  • New object setter "key" to {} to allow consistent usage with value keys
  • New helper KON::toJS: Json to convert KON objects to plain JS objects on js sourceSets
  • karr array builder moved out of KObject interface
kon - v1.1.0

Published by mpetuska about 3 years ago

Breaking Changes

  • Removed all value setter extensions in favour of to. All values should be changes to use that "myField" to "value"

Changes

  • New kon-serialization interop module with two-way conversions between JsonObject and KON
kon - v1.0.0

Published by mpetuska about 3 years ago

INITIAL RELEASE

Changes

  • kobj and karr builders for objects and arrays
  • json-like DSL for fluid syntax
  • toString implementation that returns properly formatted json entities for both, KObject and KArray