https://github.com/bleargh45/class-dbi-plugin-to_json
Help integrate Class::DBI with JSON::XS
https://github.com/bleargh45/class-dbi-plugin-to_json
class-dbi json
Last synced: 3 months ago
JSON representation
Help integrate Class::DBI with JSON::XS
- Host: GitHub
- URL: https://github.com/bleargh45/class-dbi-plugin-to_json
- Owner: bleargh45
- Created: 2021-02-15T20:58:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T20:10:59.000Z (about 3 years ago)
- Last Synced: 2025-01-29T05:13:58.989Z (over 1 year ago)
- Topics: class-dbi, json
- Language: Perl
- Homepage: http://metacpan.org/release/Class-DBI-Plugin-TO_JSON/
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
Class::DBI::Plugin::TO\_JSON - Help integrate Class::DBI with JSON::XS
# SYNOPSIS
```perl
package MY::DB;
use base qw(Class::DBI);
use Class::DBI::Plugin::TO_JSON;
```
# DESCRIPTION
`Class::DBI::Plugin::TO_JSON` helps integrate `Class::DBI` with `JSON::XS`,
by implementing a `TO_JSON()` method which turns your data record into a
plain/raw HASHREF with no inflated values.
# METHODS
- TO\_JSON()
Turns the `Class::DBI` data record into a HASHREF suitable for use with
`JSON::XS`
# AUTHOR
Graham TerMarsch (cpan@howlingfrog.com)
# COPYRIGHT
Copyright (C) 2008, Graham TerMarsch. All rights reserved.
This is free software; you can redistribute it and/or modify it under the same
terms as Perl itself.
# SEE ALSO
[JSON::XS](https://metacpan.org/pod/JSON%3A%3AXS),
[Class::DBI](https://metacpan.org/pod/Class%3A%3ADBI).