use joined instead of dob in 1st example
more allowances for json strings