Devise\Pages\Fields\LiveFieldValue::toJSON PHP Method

toJSON() public method

Returns this object as json string
public toJSON ( ) : string
return string
    public function toJSON()
    {
        return $this->__->json;
    }

Usage Example

Example #1
0
 public function test_it_merges_data()
 {
     $obj = new LiveFieldValue('{}', 12, 'field');
     $obj->merge(['one' => 'two', 'buckle' => 'my shoe']);
     assertEquals('{"one":"two","buckle":"my shoe"}', $obj->toJSON());
 }