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.
- Host: GitHub
- URL: https://github.com/sipt/gojsoner
- Owner: sipt
- License: apache-2.0
- Created: 2017-04-12T12:33:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T02:01:23.000Z (about 9 years ago)
- Last Synced: 2024-06-21T00:11:53.470Z (almost 2 years ago)
- Language: Go
- Size: 8.79 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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}
```