src/Riak/Command/Builder/ObjectTrait.php
public function buildJsonObject($data)
    {
        $this->object = new RObject();
        $this->object->setData($data);
        $this->object->setContentType(Http::CONTENT_TYPE_JSON);

        return $this;
    }
public function buildJsonObject($data)
    {
        $this->object = new RObject();
        $this->object->setData($data);
        $this->object->setContentType(Http::CONTENT_TYPE_JSON);

        return $this;
    }
Mint a new Object instance with a json encoded string

@param mixed $data

@return $this