Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
API blueprint(例如:Apiary)——从blueprint生成json主体的工具_Api_Apiblueprint_Apiary.io - Fatal编程技术网

API blueprint(例如:Apiary)——从blueprint生成json主体的工具

API blueprint(例如:Apiary)——从blueprint生成json主体的工具,api,apiblueprint,apiary.io,Api,Apiblueprint,Apiary.io,有没有工具可以帮助从API蓝图语法生成示例JSON体 例如,如果我按如下方式布置属性: + Attributes (object) + data (array) + (object) + id: 100 (number) - The ID for the particular EPG object + title: "Vikings" (string) - The title for the program item

有没有工具可以帮助从API蓝图语法生成示例JSON体

例如,如果我按如下方式布置属性:

+ Attributes (object)
    + data (array)
        + (object)
            + id: 100 (number) - The ID for the particular EPG object
            + title: "Vikings" (string) - The title for the program item
            + lang: "English" (string) - The language that the program is in
            + desc: "Lorem ipsum" (string) - The long description
            + start: 1492700179 (number) - The UNIX epoch timestamp for when the program starts
            + duration: 2816 (number) - For how many seconds the program will last
            + links (array)
                + (object)
                    + rel: "self",
                    + uri: "/epg/100"
                + (object)
                    + rel: "image"
                    + uri: "http://cdn.inquisitr.com/wp-content/uploads/2017/02/Vikings-Season-5-1.jpg"
有没有一个工具可以从中为我生成JSON主体或模式?我在Google上搜索并浏览了一下这些工具,但它们似乎都不合适。

能够为您的MSON数据结构生成JSON模式,只需从解析结果中提取它们即可

你可以这样做,但也有现成的方法

希望它澄清-我会确保更新工具部分