vue
<template>
<NbJsonTree v-model="payload" title="payload" />
</template>
<script setup lang="ts">
import { ref } from 'vue'
const payload = ref({
name: 'Ada Lovelace',
active: true,
score: 99,
tags: ['math', 'engineering'],
meta: null,
})
</script>Starting collapsed
Use start-collapsed when the payload is large and you want the user to expand nodes on demand.
Read-only inspection
Without editable, NbJsonTree is a pure inspector, useful for debugging API responses, displaying configuration, or rendering log payloads.