added bool for json return

Signed-off-by: Ninjaparade <ninja@ninjaparade.ca>