Skip to content
/ jstra Public

A JSON serializer for go turns Structs to Json

Notifications You must be signed in to change notification settings

j0nimost/jstra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jstra

Simple Package which Serializes Struct to Json

Build Status

Sample

Given a Struct

type Person struct {
	Name string
}

You implement the package like so

func main() {
	s, k := jstra.Serialize(Person{Name: "John"})

	if !k {
		fmt.Print("Error\n")
		return
	}

	fmt.Println(s)
}

It gives the following output

{"name":"John"}

Contribution

FORK and HACK

Author

John Nyingi

About

A JSON serializer for go turns Structs to Json

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages