java-commons/muscript-gson
Johannes Frohnmeyer a67d1dbbd6
ci/woodpecker/push/woodpecker Pipeline failed Details
feat: replace commons-logging with slf4j-based commons-logger and use type-safe dependency DSLs
The only reason it needed to be separate was logging during ultra early init in Minecraft. I can figure out something else for that.
2024-03-09 12:37:38 +01:00
..
src BREAKING: modularize 2023-09-21 21:08:40 +02:00
README.md docs: Document StandardLib and GsonLib functions for μScript users 2023-08-25 18:53:04 +02:00
build.gradle.kts feat: replace commons-logging with slf4j-based commons-logger and use type-safe dependency DSLs 2024-03-09 12:37:38 +01:00

README.md

μScript-gson

μScript-gson bridges the gap between μScript and commons-gson by supporting the serialization and deserialization of Dynamic to json and exposing this functionality to μScript scripts. The gson type adapters are automatically registered to any GsonHolder, but the μScript methods need to be added to your Scope manually via GsonLib.addTo(scope). Other than that, no setup is needed.

Exposed functions

signature description
toJson(src: any): string Serializes scr to json
fromJson(src: string): any Deserialized src into the appropriate μScript types