initial tests and implementation for JSONBuilder