parse JSON date; adjust grid layout when window is resized.