ToJSON: serialize boolean_columns to JSON boolean

[?]
Apr 26, 2021, 11:00 PM
4DYNWZCQTV2PFL3BFJXDY2II76B7YFKSWO7YT2L4OWXHN4UL2CHQC

Dependencies

  • [2] 4OG3W43V Get rid of old ToJSON code path
  • [*] LZVO64YG Merge in the first bits of the API work
  • [*] SYLVCTT6 Start api cleanup with the User model

Change contents

  • edit in src/lib/Hydra/Component/ToJSON.pm at line 8
    [4.2566]
    [4.2566]
    use JSON;
  • edit in src/lib/Hydra/Component/ToJSON.pm at line 21
    [5.217]
    [2.161]
    foreach my $column (@{$hint->{boolean_columns}}) {
    $json{$column} = $self->get_column($column) ? JSON::true : JSON::false;
    }