could simplify to: `return value ? json.parse(value) : null;`