added support for dumping json booleans
still needs testing wrt encodings