How to express generic object
See original GitHub issueGeneral information
- json-editor version: 2.0.0
I’m wondering how I could express a generic object with no specific properties in json-editor
, example with this schema:
{
"title": "Example",
"type": "object",
"properties": {
"type": {
"type": "string"
},
"data": {
"type": "object",
"properties": {}
},
}
}
I expect field data
should have a dynamic textarea
to fill in any generic json, is that possible to change the schema for this behaviour?
Here is the full example: https://jsfiddle.net/2eyr57tj/
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Generic Methods - Java™ Tutorials
Generic methods allow type parameters to be used to express dependencies among the types of one or more arguments to a method and/or...
Read more >Generics in Java - GeeksforGeeks
Like C++, we use <> to specify parameter types in generic class creation. To create objects of a generic class, we use the...
Read more >java - How can I access the the type of a generic object?
Even without generics, you cannot do anything like this: Timezone object = (Timezone) new Object();. new Object() will create an object whose runtime...
Read more >How To Use Generics in TypeScript - DigitalOcean
To see how useful generics are, imagine that you have a JavaScript function that takes two parameters: an object and an array of...
Read more >The Basics of Java Generics - Baeldung
The defined list could hold any object. We only know that we are retrieving a list by inspecting the context. When looking at...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why not a string format textarea?
Manually, but you can listen for change events for that