get json object from ddb