Skip to content

A small Go library that converts a hashmap into a JSON file and vice versa.

Notifications You must be signed in to change notification settings

JohnEsleyer/map2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

map2json

A small Go library that converts a hashmap into a JSON file and vice versa.

Installation

go get github.com/johnesleyer/map2json

Usage

Converting map to json file

if err := map2json.ToJson(m, "example.json"); err != nil{
  fmt.Println("Error while converting to json:", err)  
}

Converting json file to map

result, err := map2json.ToMap("example.json")
if err != nil{
  fmt.Println("Error while converting to map:", err)
}
fmt.Println(result)

About

A small Go library that converts a hashmap into a JSON file and vice versa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages