https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28700

--- Comment #29 from Martin Renvoize <[email protected]> ---
I'm coming round to Tomas's thinking.. why not just use TO_JSON...

Let me justify that.. for stringification, TO_JSON already handles the majority
of cases.. we look at the column definitions to ascertain booleans, numbers,
decimals and dates and then do the right thing to 'stringify' them based on
that information.

I find the 'unblessed' method generally a bit strange if I'm honest.. it
doesn't return all internal fields in a hash (there might be other local data
fields in the objects messages structure for example)... it only deals with
database columns.. also TO_JSON doesn't actually return a JSON string.. it
returns a hashref which is then turned into a JSON string later... the one
caveat here is we have Mojo::JSON based boolean objects instead of true/false
strings which we might expect in an 'unblessed' return.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to