My mistake, the correct JSON should be like this:
{"set":[{"uid":"_:helloworld","dgraph.type":"Person","pname":"messi"}]}
My mistake, the correct JSON should be like this:
{"set":[{"uid":"_:helloworld","dgraph.type":"Person","pname":"messi"}]}