Test & bug-fix for JsonBuilder.