Popularity
1.7
Declining
Activity
0.0
Stable
16
1
7
Programming language: Go
License: Apache License 2.0
Tags:
Json
mapslice-json alternatives and similar packages
Based on the "JSON" category.
Alternatively, view mapslice-json alternatives based on common mentions on social networks and blogs.
-
fastjson
Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection -
trdsql
CLI tool that can execute SQL queries on CSV, LTSV, JSON, YAML and TBLN. Can output to various formats. -
marshmallow
Marshmallow provides a flexible and performant JSON unmarshalling in Go. It specializes in dealing with unstructured struct - when some fields are known and some aren't, with zero performance overhead nor extra coding needed. -
epoch
Contains primitives for marshaling/unmarshaling Unix timestamp/epoch to/from built-in time.Time type in JSON -
jsonhandlers
JSON library to expose simple handlers that lets you easily read and write json from various sources.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of mapslice-json or a related project?
README
mapslice-json
Go MapSlice for ordered marshal/ unmarshal of maps in JSON
Example
package main
import (
"encoding/json"
"fmt"
"log"
"github.com/mickep76/mapslice-json"
)
func main() {
ms := mapslice.MapSlice{
mapslice.MapItem{Key: "abc", Value: 123},
mapslice.MapItem{Key: "def", Value: 456},
mapslice.MapItem{Key: "ghi", Value: 789},
}
b, err := json.Marshal(ms)
if err != nil {
log.Fatal(err)
}
fmt.Println(string(b))
ms = mapslice.MapSlice{}
if err := json.Unmarshal(b, &ms); err != nil {
log.Fatal(err)
}
fmt.Println(ms)
}
*Note that all licence references and agreements mentioned in the mapslice-json README section above
are relevant to that project's source code only.