MT#8309 remove usage of JSON::Types::bool

(cherry picked from commit 752b972e072e4fa6d796eec9b0aa57f04fd41fe4)