JSON.parse and JSON.stringify should be wrapped in try/catch. Metadata could get corrupted inside a PSD. We don't want that to crash generator.