made converting JSON back into resources work.