import { unwrapJsonPayload } from '../../shared/utils/json.util';
import { readNumericField } from '../../shared/utils/number.util';

export { unwrapJsonPayload, readNumericField };

export function fallbackCompactJson(o: Record<string, unknown>): string {
  try {
    return JSON.stringify(o);
  } catch {
    return '[объект]';
  }
}

