A web-based tool to view, edit, format, and validate JSON http://jsoneditoronline.org
Questions tagged [jsoneditor]
27 questions
6
votes
0 answers
How to load svg from node_modules using next.config.js?
I use jsoneditor NPM lib. jsoneditor contains a svg loading via import 'jsoneditor/dist/jsoneditor.css';. But it gives me this error. Looks like next.config.js is not loading the SVG properly.
ModuleParseError: Module parse failed: Unexpected token…

Nisuga Jayawardana
- 419
- 3
- 16
4
votes
1 answer
ERROR in node_modules/ang-jsoneditor/jsoneditor/jsoneditor.component.d.ts(13,9)
So, I am working on an angular project and
recently I started to face this issue while running npm start. I am not facing the issue, if copy the older node-modules folder but only when I do a fresh npm install.
I do not see any changes in my…

Mahipal
- 344
- 2
- 13
3
votes
0 answers
Wrapping an external library as a controlled component with react hooks: problem with useEffect dependencies
I'm trying to make a thin wrapper to the "jsoneditor" library using a functionnal component. I'm rather new to React and worked so far mainly with hooks. So I tried to adapt the example given by the author of the library to use…

Hugo Merzisen
- 303
- 2
- 8
3
votes
2 answers
How do you call a javascript method on a htmlwidget (jsoneditor) in shiny?
I'm trying to use jsonedit from the listviewer package in a shiny app and want to display the tree fully expanded by default. There isn't an option to do this in the jsonedit() function, but the underlying javascript object has an .expandAll()…

pseudospin
- 2,737
- 1
- 4
- 19
2
votes
1 answer
Any json editor in angular 10?
I was using ang-jsoneditor before I upgrade my nodejs (was 8, now 12) and angular (was 7, now 10). After the upgrade, the ang-jsoneditor seems not working, and error is
core.js:4442 ERROR TypeError: Cannot read property 'nativeElement' of undefined
…

user13904118
- 87
- 1
- 8
2
votes
0 answers
Can we able to add a text in jsoneditor on click event?
I have integrated jsoneditor in Angular, (npm here: https://www.npmjs.com/package/ng2-jsoneditor).
When a button is clicked I want to add text inside the editor where the cursor is positioned.
I am using jsoneditor in 'code' mode.

Chinna_24
- 21
- 1
1
vote
1 answer
How to set code view as deafult instead of tree in jsoneditor
https://github.com/mariohmol/ang-jsoneditor.
I have used the above library for jsoneditor.Here I have tree view as default one.But I want code view .How to set it and where do I change it.I am finidng html elements in inspect but in code i am not…

snehitha
- 37
- 4
1
vote
0 answers
Using the "watch" field in "description" in JSON editor
I'm using a JSON configuration schema which gets pushed to a website which should by using this JSON editor. And I would like to have the user input shown in the description field. Here is a snippet of the JSON file:
{
"type": "object",
…

MrZH6
- 227
- 1
- 5
- 16
1
vote
0 answers
How can I give a specific name to 0th and 1st object of "Items" array of AngularJsonEditor?
Example link is here
https://stackblitz.com/edit/angular-rwwjo3?file=src/app/app.component.ts
I want to show a specific name for object 0 and object 1 of Items array. How can I achieve this. I am using NgJsonEditor.
This is HTML code ->
This is the…

Josna Reddy
- 11
- 4
1
vote
0 answers
ERROR in ../../node_modules/@angular/core/core.d.ts(13146,86): error TS1110: Type expected
After installing angular json editor using this command - npm install --save jsoneditor ang-jsoneditor getting bellow error after angular compilation
ERROR in ../../node_modules/@angular/core/core.d.ts(13146,86): error TS1110: Type…

rk01
- 76
- 9
1
vote
0 answers
How to implement autocomplete using ang-jsoneditor (JSON editor in Angular)
I am working on an angular project which uses ang-jsoneditor(https://www.npmjs.com/package/ang-jsoneditor) for JSON.
"ang-jsoneditor": "^1.8.4"
"jsoneditor": "^8.6.8"
ang-jsoneditor internally uses jsoneditor…

Rahul Razdan
- 419
- 4
- 11
0
votes
1 answer
How to implement AutoComplete textfield feature in JSONEditor using Josdejong library in react js
I have to implement a feature like user will get the list of names and when user will type in the textfield, list should should appear with suggestions and user will pick the value.
I saw autoComplete feature is there but I am not aware how to use…

Lucky
- 325
- 1
- 3
- 16
0
votes
4 answers
How to update fields on a large json file?
I have a large json file like this:
{
"height": 2.5,
"status": "open",
"date": 1662645600000,
"batch": {
"food": {
"-NBml_1X3O1H6Yrkr3LN0": {
"qty": 5.35,
"date": 1663004201119
},
…

David L
- 1,134
- 7
- 35
0
votes
0 answers
Json-editor: searching a online-tool that supports my team by building a complex json-schema/model
We are a remote-working team with the upcoming challenge to build, edit, share and document a complex json-datamodel-scheme.
For this task we are searching a tool that fits our needs in this process:
browser-based preferred (no local…
0
votes
0 answers
how do i change the color of single value of json tree using react-json-tree?
i have use two separate components jsonforms and react-json-tree, one is edit or create json and other(i.e tree structure in right side) for displaying view only...
i want to highlight the field on json-tree that i am editing on left side(on…

sd_555
- 1
- 1