remove compact option
typo
add a putJsonCompact fn