v0.2.4 🦎 [lizard] "flatjson" #171
k33g
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Handling Json with TinyGo is not straight forward (but not impossible).
If your use case is very simple (a Json string without nested object or array) you can use:
flatjson.StrToMap(flatJsonStr string) map[string]interface{}
: get a flat json string (no nested obj) and return a mapflatjson.MapToStr(jsonMap map[string]interface{}) string
: get a flat json map and return a json stringExample:
Call the function:
This discussion was created from the release v0.2.4 🦎 [lizard] "flatjson".
Beta Was this translation helpful? Give feedback.
All reactions