# extendify/3.0.5/src/Shared/lib/parsing.js

Extendify, version 3.0.5. 11 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.0.5/code/src/Shared/lib/parsing.js
- Raw: https://pluginprobe.com/plugins/extendify/3.0.5/raw/src/Shared/lib/parsing.js
- Modified: 2026-02-18T22:27:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.0.5/code/src/Shared/lib/parsing.js#L10-L20`.

```javascript
export const safeParseJson = (json, fallback = {}) => {
	if (typeof json !== 'string') {
		return json ?? fallback;
	}
	try {
		return JSON.parse(json) ?? fallback;
	} catch (_e) {
		return fallback;
	}
};

```
