2017-08-01 34 views
0

我有一個示例json顯示如下 如何顯示字段「connector.class」? 如果我使用它,它將不會顯示任何內容,因爲它解釋爲嵌套json。如何訪問帶名稱的json字段

{ 
"connector.class" : "FileGenericSourceConnector", 
"schema.registry.uri" : "http://localhost:8081", 
"cuid" : "597bd1dc7985373920904f81", 
"file.location" : "/home/vagrant/df_data/", 
"tasks.max" : "1", 
"file.glob" : "*.{json,csv}", 
"file.overwrite" : "true", 
"schema.subject" : "test_value", 
"topic" : "stock" 
} 
+1

參見[得到這個工作帶空格或點的屬性](https://stackoverflow.com/a/10311400/6564517) –

回答

1

最後,利用[」「]在休息上管理員

<LongTextInput source="connectorConfig.['connector.class']" label="Class Name" /> 
相關問題