parameterized all json stuff, so things weren't in many places

Signed-off-by: William Rockwood <wrockwood@tadl.org>