Basho\Riak\Command\Builder\ObjectTrait::buildJsonObject PHP Method

buildJsonObject() public method

Mint a new Object instance with a json encoded string
public buildJsonObject ( mixed $data )
$data mixed
    public function buildJsonObject($data)
    {
        $this->object = new RObject();
        $this->object->setData($data);
        $this->object->setContentType(Http::CONTENT_TYPE_JSON);
        return $this;
    }