go-simplejson icon indicating copy to clipboard operation
go-simplejson copied to clipboard

a Go package to interact with arbitrary JSON

Results 34 go-simplejson issues
Sort by recently updated
recently updated
newest added

I want to iterate an array, and use the elements of the array as *simplejson.Json. I found no function to get size of array, the only way I found is...

Hello. is there any way to test the value for NULL? Assume we have a json ```json {"someid":null} ``` And I want to test if the value is _null_, not...

```package main import ( "fmt" sjson "github.com/bitly/go-simplejson" ) func main() { body := `"{"client_id":"abc123","client_ip":"59.37.125.15","client_version":"1"}"` // body := `{"client_id":"abc123","client_ip":"59.37.125.15","client_version":"1"}` js, err := sjson.NewJson([]byte(body)) if err != nil { fmt.Printf("failed to decode...

``` package main import ( "fmt" js "github.com/bitly/go-simplejson" ) func main() { child := js.New() child.Set("foo", "foo") child.Set("bar", "bar") parent := js.New() parent.Set("child_1", child) tmp_json := parent.Get("child_1") ss, _ :=...

simplejson和encoding/json对json串处理的问题。针对于字符串:“111:222”,simplejson(理解为在encoding/json上包了一层)会将其视为符合规则的json串,而encoding/json(官方推荐的库)不会将其视为符合规则的json串。

When the encoded json field contains &, < or > symbols, they will be encoded in the form of ascii code. I know this is due to the json library...

Hi, I had added ppc64le(Linux on Power) support on travis-ci in the branch and looks like its been successfully added. I believe it is ready for the final review and...

` func (j *Json) Array() ([]interface{}, error) ` This is read method. So which is the SetArray function?

fix [issue 70](https://github.com/bitly/go-simplejson/issues/70)

can simplejson use like this: getPath(0, "key1", 3, "key2") current only support string path