diff --git a/src/renderers/Json.tsx b/src/renderers/Json.tsx index 936a7e9f3..2535e2487 100644 --- a/src/renderers/Json.tsx +++ b/src/renderers/Json.tsx @@ -156,6 +156,7 @@ export class JSONField extends React.Component { jsonTheme, classnames: cx, hideRoot, + placeholder, source } = this.props; @@ -176,13 +177,17 @@ export class JSONField extends React.Component { return (
- + {typeof value === 'undefined' || value === null ? ( + placeholder + ) : ( + + )}
); }