{"action":"closed","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-client-go/issues/134","repository_url":"https://api.github.com/repos/aerospike/aerospike-client-go","labels_url":"https://api.github.com/repos/aerospike/aerospike-client-go/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-client-go/issues/134/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-client-go/issues/134/events","html_url":"https://github.com/aerospike/aerospike-client-go/issues/134","id":163620615,"number":134,"title":"Marshalling of BinMap to JSON fails","user":{"login":"ameykpatil","id":3050421,"avatar_url":"https://avatars.githubusercontent.com/u/3050421?v=3","gravatar_id":"","url":"https://api.github.com/users/ameykpatil","html_url":"https://github.com/ameykpatil","followers_url":"https://api.github.com/users/ameykpatil/followers","following_url":"https://api.github.com/users/ameykpatil/following{/other_user}","gists_url":"https://api.github.com/users/ameykpatil/gists{/gist_id}","starred_url":"https://api.github.com/users/ameykpatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameykpatil/subscriptions","organizations_url":"https://api.github.com/users/ameykpatil/orgs","repos_url":"https://api.github.com/users/ameykpatil/repos","events_url":"https://api.github.com/users/ameykpatil/events{/privacy}","received_events_url":"https://api.github.com/users/ameykpatil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aerospike/aerospike-client-go/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/aerospike/aerospike-client-go/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/aerospike/aerospike-client-go/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-04T07:46:22Z","updated_at":"2016-07-04T14:25:04Z","closed_at":"2016-07-04T14:25:04Z","body":"I have data in my aerospike which is like -  \r\n```javascript\r\n{\r\n    \"posts\": [\r\n      {\r\n        \"authUid\": \"222-tw\",\r\n        \"text\": \"Hey yo\",\r\n        \"images\": [\r\n          {\r\n            \"high\": \"https://c5740aedb0-1600.png\",\r\n            \"small\": \"https://11e6-964c-f395740aedb0-320.png\",\r\n            \"guid\": \"635c0e79-892b-438e-a012-78235c0da37d\",\r\n            \"medium\": \"https://7854-481eb7f0-41a9-11e6-964c-f395740aedb0-640.png\"\r\n          }\r\n        ],\r\n        \"_id\": \"5779f5e70616362133b3605a\",\r\n        \"createdAt\": 1467610599432,\r\n        \"createdBy\": \"9d4614b1-9751-41a0-a954-3c42e0ff7854\"\r\n      }\r\n    ]\r\n  } \r\n```\r\n\r\nBut when I fetch the data & try to marshal the bins, \r\n```go\r\nspikeKey, _ := as.NewKey(\"test\", \"test_set\", key)\r\nrec, _ := cli.Get(nil, spikeKey)\r\njsonRec, e := json.Marshal(rec.Bins)\r\n```\r\nIt is giving me error as\r\n`json: unsupported type: map[interface {}]interface {}`\r\n\r\nAs per docs type of BinMap is `map[string]interface{}`\r\nhttps://godoc.org/github.com/aerospike/aerospike-client-go#BinMap\r\n\r\n\r\n  "}}
{"actor":{"display_login":"ameykpatil"}}