in reply to Parse Json using perl

use json;

There is no such module. Maybe you meant:

use JSON;

To proceed further, you should print out the string you have in $self->output() and verify that it matches what you expect. Then you should inspect the output of print Dumper $decoded;