export to json works with new layout