makamaka / JSON

perl implementation of JSON encoder/decoder
42 stars 40 forks source link

Add a method to create a JSON boolean from a perl scalar #40

Closed davidcantrelluk2 closed 5 years ago

davidcantrelluk2 commented 5 years ago

We quite often find ourselves writing something like this:

... $some_boolean ? JSON->true : JSON->false

It would be nice if we could instead write:

JSON->boolean($some_boolean)

moritz commented 5 years ago

Any reason this issue is still open? The linked pull request has been merged, and a release has been cut.

charsbar commented 5 years ago

@moritz Thanks for the heads-up!