2015-11-02 49 views
3

我試圖描述基於this answer藍圖陣列(蜂房)

+ Response 200 (application/json) 
    + Attributes 
     + time (object, required) 
      + default (string, required) - `HH:MM` default time 
      + times (array, required) - Array of times for date 
       + time (object) 
        + value: 12:00 (string, required) - `HH:MM` time value 
        + occupied: true (boolean, required) 

與語法對象的數組,但呈現什麼養蜂場是

{ 
    "time": { 
    "default": null, 
    "times": [ 
     { 
     "undefined": null 
     } 
    ] 
} 

它是bug還是我得到了它錯誤?

回答

1

MSON支持仍處於測試階段,並且能夠在接下來的幾周內處理這些情況。

你可以用這種方式安全地描述你的結構,文檔很快就會迎頭趕上。