NAME

Web::MREST::Util - Miscellaneous utilities

VERSION

Version 0.252

SYNOPSIS

Miscellaneous utilities

EXPORTS

This module provides the following exports:

$JSON (singleton)
pod_to_html (function)
pod_to_text (function)

FUNCTIONS

#=head2 make_json # #Given a Perl scalar, returns a JSON representation. # #=cut # #sub make_json { # $JSON->encode( $_[0] ); #}

pod_to_html

Every Web::MREST resource definition includes a 'documentation' property containing a POD string. Our 'docu/html' resource converts this POD string into HTML with a little help from this routine.

pod_to_text

Convert POD string into text