fixed bug that didn't allow json to be parsed in layouts