---
name: "JSON::RPC::Common::Marshal::Text"
section: "3pm"
platform: "linux"
package: "libjson-rpc-common-perl"
version: "0.11-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/JSON::RPC::Common::Marshal::Text"
---

# JSON::RPC::Common::Marshal::Text(3pm)

JSON text marshalling for JSON::RPC::Common.

## NAME

JSON::RPC::Common::Marshal::Text - JSON text marshalling for JSON::RPC::Common.

## VERSION

version 0.11

## SYNOPSIS

```
        use JSON::RPC::Common::Marshal::Text;
        my $m = JSON::RPC::Common::Marshal::Text->new;
        my $return_obj = $m->json_to_return($json_text);
```

## DESCRIPTION

This object serializes JSON::RPC::Common::Procedure::Call and JSON::RPC::Common::Procedure::Return objects into JSON text using the JSON module.

## ATTRIBUTES

- json

  The JSON object to use. A default one will be created if not specified.

- call\_class

  - return\_class

  The classes to call `"inflate"` on.

  Defaults to JSON::RPC::Common::Procedure::Call and JSON::RPC::Common::Procedure::Return.

## METHODS

- call\_to\_json

  - json\_to\_call

  - return\_to\_json

  - json\_to\_return

  These methods do the conversion from objects to json and vice versa.

## AUTHOR

Yuval Kogman \<nothingmuch@woobling.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Yuval Kogman and others.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
