0

I have a sample json to show as follows how I can display a field "connector.class"? If I use , it will show nothing since it interpreted as nest 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"
}
Will Du
  • 121
  • 11

2 Answers2

1

Finally, got this working by using [' '] in rest-on-admin

<LongTextInput source="connectorConfig.['connector.class']" label="Class Name" />
Will Du
  • 121
  • 11
0

You can use the AOR FunctionField

https://marmelab.com/admin-on-rest/Fields.html#functionfield

<FunctionField label="Connector Class" render={record => {record.connector.class} />
kunal pareek
  • 1,285
  • 10
  • 21