DBIx-Class-Helpers icon indicating copy to clipboard operation
DBIx-Class-Helpers copied to clipboard

Booleans with Helper::Row::ToJSON

Open 0x62ash opened this issue 7 years ago • 5 comments

ToJSON should return JSON::PP::false, JSON::PP:true for boolean data-types.

0x62ash avatar Jan 30 '18 15:01 0x62ash

Or maybe i should somehow bind my boolean column to JSON::PP::true/false objects...

0x62ash avatar Jan 30 '18 15:01 0x62ash

At this point making such a change would be backwards incompatible for anyone who has depended on the existing behavior for very long. I'd accept a PR to make it a flag though.

frioux avatar Feb 01 '18 16:02 frioux

I was hit by this issue today, wondering how I could fix it :(

mat813 avatar Aug 28 '19 16:08 mat813

Well, yes, I did that for the table I needed right away, but I was thinking more of a cleaner way in a helper :) Don't worry, I'll figure out something.

mat813 avatar Aug 29 '19 07:08 mat813