Hi @nraboy ,
Above I’ve provided wrapper written over MongoDB in 2 nd point . There I am doing marshalling and unmarshalling , i.e is the reason I’ve used JSON data structure .
I thought may be using the “map[string]interface{}” data structure is wrong , so I am tried changing my structure also , but no luck .
package entities
type IMDBRegistryImproved struct {
MovieName stringjson:"moviename,omitempty"
Rating stringjson:"rating,omitempty"
RatingCount intjson:"peoplecount,omitempty"
Comments UserCommentsjson:"comments,omitempty"
}type UserComments struct {
MovieName stringbson: "MovieName" json:"MovieName,omitempty"
//bson:"MovieName"
json:“MovieName,omitempty”
UserName stringbson: "UserName" json:"UserName,omitempty"
//bson: json:"UserName,omitempty
UserComment stringbson: "UserComment" json:"UserComment,omitempty"
//json:"UserComment,omitempty
UserRating float32bson: "UserRating" json:"UserRating,omitempty"
//json:"UserRating,omitempty
}