We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use options:
remove_empty_properties: true, use_default_values: false,
string value shows, but bool or number value does not show.
test code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Basic JSON Editor Example</title> <!--script src="jsoneditor.min.js"></script--> <script src="dist/jsoneditor.js"></script> </head> <body> <h1>Basic JSON Editor Example</h1> <div id='editor_holder'></div> <button id='submit'>Submit (console.log)</button> <script> var startval = { a: true, b: 99, // type: "ZUSB", ranges: [0,1,2], }; // Initialize the editor with a JSON schema var editor = new JSONEditor(document.getElementById('editor_holder'),{ schema: { type: "object", title: "root", properties: { a: { type:"boolean", }, c: { type:"boolean", }, type: { type:"string", enum: ["USB","ZUSB","NET"], default: "ZUSB" }, ranges: { type: "array", format: "table", items: { type: "integer" } } } }, startval: startval, remove_empty_properties: true, use_default_values: false, show_opt_in: true }); document.getElementById('submit').addEventListener('click',function() { console.log(editor.getValue()); }); </script> </body> </html>
The action is correct on version 2.6.1+ (revision 5c0b1de).
The text was updated successfully, but these errors were encountered:
germanbisurgi
No branches or pull requests
General information
It's regression. The good version is 5c0b1de (2.6.1+)
use options:
string value shows, but bool or number value does not show.
test code:
Expected behavior
The action is correct on version 2.6.1+ (revision 5c0b1de).
Actual behavior
The text was updated successfully, but these errors were encountered: