{"id":13413276,"url":"https://github.com/ake-persson/mapslice-json","last_synced_at":"2025-04-22T18:25:52.175Z","repository":{"id":37956019,"uuid":"241599945","full_name":"ake-persson/mapslice-json","owner":"ake-persson","description":"Go MapSlice for ordered marshal/ unmarshal of maps in JSON","archived":false,"fork":false,"pushed_at":"2024-03-08T08:51:37.000Z","size":19,"stargazers_count":17,"open_issues_count":5,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T12:12:59.217Z","etag":null,"topics":["go","json","map","mapslice","slice"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ake-persson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-19T11:01:48.000Z","updated_at":"2024-04-29T13:38:06.040Z","dependencies_parsed_at":"2024-04-29T13:38:04.405Z","dependency_job_id":"5525144a-3789-4f0b-be8a-b8f94f291e20","html_url":"https://github.com/ake-persson/mapslice-json","commit_stats":null,"previous_names":["mickep76/mapslice-json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ake-persson%2Fmapslice-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ake-persson%2Fmapslice-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ake-persson%2Fmapslice-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ake-persson%2Fmapslice-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ake-persson","download_url":"https://codeload.github.com/ake-persson/mapslice-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296539,"owners_count":21407038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","json","map","mapslice","slice"],"created_at":"2024-07-30T20:01:36.661Z","updated_at":"2025-04-22T18:25:52.135Z","avatar_url":"https://github.com/ake-persson.png","language":"Go","readme":"[![GoDoc](https://godoc.org/github.com/ake-persson/mapslice-json?status.svg)](https://godoc.org/github.com/ake-persson/mapslice-json)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ake-persson/mapslice-json)](https://goreportcard.com/report/github.com/ake-persson/mapslice-json)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/ake-persson/mapslice-json/blob/master/LICENSE)\n[![Coverage Status](https://coveralls.io/repos/github/ake-persson/mapslice-json/badge.svg?branch=master)](https://coveralls.io/github/ake-persson/mapslice-json?branch=master)\n[![Build Status](https://travis-ci.org/ake-persson/mapslice-json.svg?branch=master)](https://travis-ci.org/ake-persson/mapslice-json)\n\n# mapslice-json\n\nGo MapSlice for ordered marshal/ unmarshal of maps in JSON\n\n# Example\n\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/ake-persson/mapslice-json\"\n)\n\nfunc main() {\n\tms := mapslice.MapSlice{\n\t\tmapslice.MapItem{Key: \"abc\", Value: 123},\n\t\tmapslice.MapItem{Key: \"def\", Value: 456},\n\t\tmapslice.MapItem{Key: \"ghi\", Value: 789},\n\t}\n\n\tb, err := json.Marshal(ms)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Println(string(b))\n\n\tms = mapslice.MapSlice{}\n\tif err := json.Unmarshal(b, \u0026ms); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(ms)\n}\n```\n","funding_links":[],"categories":["Relational Databases","JSON"],"sub_categories":["Advanced Console UIs","Search and Analytic Databases"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fake-persson%2Fmapslice-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fake-persson%2Fmapslice-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fake-persson%2Fmapslice-json/lists"}