Return true in option callbacks

This fixes the issue where the return value from these
callbacks is just a random value, for example false, which
in turn makes -c/--commit not work.
Make json_to_stream internal