restored proper conversion to ddb json