2017-03-16 53 views

回答

3

輸入

{ 
    "name": "Rj", 
    "Age": "15" 
} 

規格

[ 
    { 
    "operation": "shift", 
    "spec": { 
     // @(1,name) -> go up 2 level, come back down and 
     // grab the value at "name" which is "RJ" 
     // Thus this evaluates to 
     // "Age" : "RJ.Age" 
     "Age": "@(1,name).Age" 
    } 
    } 
] 
+0

米洛嗨提供一個JSON SPEC。謝謝你這麼多..是否有可能爲這樣的輸出創建SPEC {「key」:{「object of object value」}} – user6543599

+0

{「key」:{「object of value」}}無效JSON .. 。 –