Fixup printing size code
first commit for testing writing json_tree