使用json-schema-view-js解析带注释的JSON格式数据源

使用插件: json-schema-view-js(dependencies >>> "^2.0.1")

import JSONSchemaView from "json-schema-view-js";

let view = new JSONSchemaView(JSON.parse(palyload.funcResult));
// 二次解析

import JSONSchemaView from "json-schema-view-js";

this.rawData404 = new JSONSchemaView(this.obj);

解析带注释的JSON格式数据源

效果图

猜你喜欢

转载自blog.csdn.net/weixin_42232156/article/details/124990028
今日推荐