Ticket 49683 - Add support for JSON option in lib389 CLI tools
Description: This is the initial patch for adding a json option to
the CLI tools. This patch also addresses issues with
using LDAPI with the CLI.
https://pagure.io/389-ds-base/issue/49683
Reviewed by: firstyear & spichugi (Thanks!!)