| 1 | package DR::TarantoolQueue::JSE; | ||
| 2 | use Mouse::Role; | ||
| 3 | use utf8; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | |||
| 8 | has jse => ( | ||
| 9 | is => 'ro', | ||
| 10 | isa => 'Object', | ||
| 11 | lazy => 1, | ||
| 12 | builder => '_build_jse' | ||
| 13 | ); | ||
| 14 | |||
| 15 | sub _build_jse { | ||
| 16 | return JSON::XS->new->allow_nonref->utf8; | ||
| 17 | } | ||
| 18 | |||
| 19 | 1; |