toPrettyJsonString() — supabase Function Reference
Architecture documentation for the toPrettyJsonString() function in Users.utils.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD e29ff685_8f3a_04cc_f67b_ac2876c9e7a1["toPrettyJsonString()"] 3c05a680_a8e3_7a53_e059_ae8513da59ad["getDisplayName()"] 3c05a680_a8e3_7a53_e059_ae8513da59ad -->|calls| e29ff685_8f3a_04cc_f67b_ac2876c9e7a1 style e29ff685_8f3a_04cc_f67b_ac2876c9e7a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Auth/Users/Users.utils.tsx lines 123–135
function toPrettyJsonString(value: unknown): string | undefined {
if (!value) return undefined
if (typeof value === 'string') return value
if (Array.isArray(value)) return value.map((item) => toPrettyJsonString(item)).join(' ')
try {
return JSON.stringify(value)
} catch (error) {
// ignore the error
}
return undefined
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does toPrettyJsonString() do?
toPrettyJsonString() is a function in the supabase codebase.
What calls toPrettyJsonString()?
toPrettyJsonString() is called by 1 function(s): getDisplayName.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free