The base package will be used for other plugins too, so it contains general utility functions.

The JSON convenience function `json_boolean` is just to avoid writing out that ternary logic all over the place.