Use v-html directive:

<div class="columns medium-4 large-4" v-for="keyOffer in keyOffers">
  <p>{{ keyOffer.head }}</p>
  <p v-html="keyOffer.sub"></p>
</div>

Ref: RawHTML

Answer from Sajib Khan on Stack Overflow
🌐
Medium
medium.com › html-all-the-things › hatt-vue-js-2-9b34557f0305
Use JSON to dynamically build web pages with Vue.js | by Mikhail Karan | HTML All The Things | Medium
September 21, 2018 - This tells Vue.js that we want to add these variables to our reactivity system (the html code that is created by the Vue.js instance) . ... If you take a look at the <script> tag we can see the new data property with a return. We need this return because we are using a custom component structure and we need to tell our instance that there are variables it needs to keep on eye on. When these variables change they will cause a re render to occur on the element they are bound too. In our case we just need to store the json we imported into a template accessible variable myJson .
🌐
GitHub
github.com › faaezahmd › vue-json-to-html-table
GitHub - faaezahmd/vue-json-to-html-table: Vue 3 Component to display JSON Data as html tables
A Vue.js 3 component to transform json data in to html. ... import VueJsonToHtmlTable from 'vue-json-to-html-table'; import 'vue-json-to-html-table/dist/style.css';
Author   faaezahmd
🌐
npm
npmjs.com › package › vue-json-to-html
vue-json-to-html - npm
August 3, 2018 - 👅 Vue component for generating equal HTML from Json/JS-Object · Usage · Component props · Install component to your project: npm install vue-json-to-html yarn add vue-json-to-html · Import and include to Vue Instance installed component: ...
      » npm install vue-json-to-html
    
Published   Aug 03, 2018
Version   0.1.12
🌐
InterSystems
community.intersystems.com › post › vuejs-getting-started-basic-htmlrestjson-example
Vue.js: getting started with a basic HTML/REST/JSON example | InterSystems
This is a basic JavaScript Vue.js example how you can use REST calls using plain HTML.You can just copy/paste the example code below, save it to a *.html file and open it in y
🌐
GitHub
github.com › serhiichuk › vue-json-to-html
GitHub - serhiichuk/vue-json-to-html
<template> <div id="content"> <JsonToHtml :json="json" :bem="true" rootClassName="wrapper" rootTagName="section" :inheritClassName="false"/> </div> </template>
Author   serhiichuk
Find elsewhere
🌐
Storyblok
storyblok.com › tp › vue-dynamic-component-from-json
How to render dynamic component defined in JSON using Vue.js | Storyblok
August 22, 2019 - You can now add more components of the type foo and bar with different title/headline values and they will be rendered as if you would add them statically under each other. The order in the JSON defines the order of them being rendered.
🌐
npm
npmjs.com › package › json-editor-vue
json-editor-vue - npm
import JsonEditorVue from 'json-editor-vue' import { createApp } from 'vue' createApp() .use(JsonEditorVue, { // global props & attrs (one-way data flow) }) .mount('#app') <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> </head> <body> <div id="app"> <json-editor-vue v-model="value"></json-editor-vue> </div> <script type="importmap"> { "imports": { "vue": "https://cdn.jsdelivr.net/npm/vue/dist/vue.esm-browser.prod.js", "vue-demi": "https://cdn.jsdelivr.net/npm/vue-demi/lib/v3/index.mjs", "vanilla-jsoneditor": "https://cdn.jsdelivr.net/npm/vanilla-jsoneditor", "json-editor-vue":
      » npm install json-editor-vue
    
Published   Mar 05, 2025
Version   0.18.1
Author   Cloyd Lau
Top answer
1 of 3
8

Well, you will have to add the code that you have written for Vue

If you are in a vue app, you can do something like this

<script>
      import json from './json/data.json'
      export default{
          data(){
              return{
                  myJson: json
              }
          }
      }
</script>

and if you are writting it inside an html page. you can do it in 2 steps.

1st is to add the file link as a script

<script src="../file.json"></script>

then in the vue script section you can assign it to the data object.

var ele = new Vue({
     el : "#YourElement", 
    data : ObjName
});

"ObjName" is a name of the json object in the file.

ObjName :
{
"data": [
    [
        {
           "account_id": "  "
           "account_name": "   "
        }
2 of 3
2

You can use a computed property that would reactively take account_name property of the first object of every array:

const data = {
  "data": [
    [
      {
        "account_id": "11",
        "account_name": "name11"
      },
      {
        "account_id": "12",
        "account_name": "name12"
      },
      {
        "account_id": "13",
        "account_name": "name13"
      },
      {
        "account_id": "14",
        "account_name": "name14"
      }
    ],
    [
      {
        "account_id": "21",
        "account_name": "name21"
      },
      {
        "account_id": "22",
        "account_name": "name22"
      },
      {
        "account_id": "23",
        "account_name": "name23"
      }
    ],
    [
      {
        "account_id": "31",
        "account_name": "name31"
      },
      {
        "account_id": "32",
        "account_name": "name32"
      },
      {
        "account_id": "33",
        "account_name": "name33"
      }
    ]
  ]
}


new Vue({
  el: '#demo',
  data() {
    return {
      data: data.data
    }
  },
  computed: {
    firstAccountNames() {
      return this.data.map(dataSet => dataSet[0].account_name)
    }
  }
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="demo">
  <ul>
    <li v-for="name in firstAccountNames">
      {{ name }}
    </li>
  </ul>
</div>

🌐
npm
npmjs.com › package › vue-json-pretty
vue-json-pretty - npm
October 28, 2025 - A Vue component for rendering JSON data as a tree structure.
      » npm install vue-json-pretty
    
Published   Oct 28, 2025
Version   2.6.0
Author   leezng
🌐
npm
npmjs.com › package › vue-json-viewer
vue-json-viewer - npm
import Vue from 'vue' import JsonViewer from 'vue-json-viewer' // Import JsonViewer as a Vue.js plugin Vue.use(JsonViewer) // or // components: {JsonViewer} new Vue({ el: '#app', data() { return { jsonData: { total: 25, limit: 10, skip: 0, links: { previous: undefined, next: function () {}, }, data: [ { id: '5968fcad629fa84ab65a5247', firstname: 'Ada', lastname: 'Lovelace', awards: null, known: [ 'mathematics', 'computing' ], position: { lat: 44.563836, lng: 6.495139 }, description: `Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine.
      » npm install vue-json-viewer
    
Published   Mar 03, 2022
Version   2.2.22
Author   陈峰