Problem with lists in queries response

pawanrawal commented :

Tried reproducing but couldn’t. Please share a complete reproducible example if you have one. Here is a go test that I created and verified with v1.0.2.

package main

import (
	"context"
	"log"
	"testing"

	"google.golang.org/grpc"

	"github.com/dgraph-io/dgraph/client"
	"github.com/dgraph-io/dgraph/protos/api"
	"github.com/dgraph-io/dgraph/x"
	"github.com/stretchr/testify/require"
)

func TestList(t *testing.T) {
	d, err := grpc.Dial("localhost:9080", grpc.WithInsecure())
	if err != nil {
		log.Fatal(err)
	}

	c := client.NewDgraphClient(
		api.NewDgraphClient(d),
	)

	ctx := context.Background()
	x.Check(c.Alter(ctx, &api.Operation{DropAll: true}))
	x.Check(c.Alter(ctx, &api.Operation{Schema: `jurisdiction: [string] .`}))

	out := []byte(`{
		"uri":"http://skos.um.es/unescothes/C00001",
		"term":"Abandoned children",
		"jurisdiction":["global1","global2"],
		"lastUpdate":"2017-12-27T16:36:02.861"
	}`)
	uids, err := c.NewTxn().Mutate(context.Background(), &api.Mutation{SetJson: out, CommitNow: true})
	x.Check(err)
	uid := uids.Uids["blank-0"]

	q := `
	{
	  me(func: uid(` + uid + `)) {
	    uri
	    term
	    jurisdiction
	    lastUpdate
	  }
	}
	`

	resp, err := c.NewTxn().Query(ctx, q)
	x.Check(err)
	require.JSONEq(t, `{"me":[{"uri":"http://skos.um.es/unescothes/C00001","term":"Abandoned children","jurisdiction":["global2","global1"],"lastUpdate":"2017-12-27T16:36:02.861"}]}`, string(resp.Json))
}