fix issue with incorrect encoding on json response (fixes issue #1477)
rename b2db default_value annotation to default, to avoid mistakes
syntax fixes