eval { JSON::Any->import };
confess "Could not load JSON module because : $@" if $@;
- utf8::encode($json) if utf8::is_utf8($json) or utf8::valid($json);
+ utf8::encode($json) if utf8::is_utf8($json);
my $data = eval { JSON::Any->jsonToObj($json) };
if ($@) {
=head1 COPYRIGHT AND LICENSE
-Copyright 2007 by Infinity Interactive, Inc.
+Copyright 2007-2008 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>