Add json and dict reconstructors.