it should echo json date instead of return