An open API service indexing awesome lists of open source software.

https://github.com/sipt/gojsoner

Loading JSON file in Golang and discarding comments.
https://github.com/sipt/gojsoner

Last synced: about 1 year ago
JSON representation

Loading JSON file in Golang and discarding comments.

Awesome Lists containing this project

README

          

# GoJsoner
Loading JSON file in Golang and discarding comments.

## Installation

Install GoJsoner using the "go get" command:

```
go get github.com/sipt/GoJsoner
```

## Examples

```Go
result, err := Discard(`
{//test comment1
"name": "测试",
/**
test comment2
1
2
3
end
*/
"age":26 //test comment3
/*****/
}
`)
```

output

```
{"name":"测试","age":26}
```