question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

General information

  • json-editor version: 2.5.4

Expected behavior

An easy way to delete a property or property value.

For example see link below. In our case this has become more noticeable when using format: file, once you select a photo/picture and save, there is then no easy way to delete the image you uploaded, you need to actually edit the json and remove the base64 contents, which is of course cumbersome. This could apply to any proprty, not just format: file, I think a simple x or delete options like are available for arrays would be useful, or perhaps configurable per property.

Actual behavior

You are unable to delete easilly.

Steps to reproduce the behavior

Direct link to example: https://json-editor.github.io/json-editor/?data=N4Ig9gDgLglmB2BnEAuUMDGCA2MBGqIAZglAIYDuApomALZUCsIANOHgFZUZQD62ZAJ5gArlELwwAJzplsrEIgwALKrNShYUbFUIAFKlNrwFUQRF0p2XHgqlUAjiJj2AJqgDaIeGQYKIUmBEMDq8EJggALpsAZCGsDQa3r6WmuaWilBSMPAA5gquNBjZ0HAmVgBiLohQAARk8K61ADJkNbU+fmx0Oc1UeVDKqAAsbIVEZCLY4lYAUoZqgrUAItImAL4xgcGh4RhJJDJkM8Qhut1UrjBkSXg5ZFKCAKLwWFd5hHhtVABswyCbEBmCyEGrZD7rSFsRDKMAUXiGQJGQg5KCGMg8MqmVR+Kx4MBgKBgsgQf6QoA=

{
  "title": "Person",
  "type": "object",
  "required": [
    "name",
    "profile_pic"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "First and Last name",
      "minLength": 4,
      "default": "Jeremy Dorn"
    },
    "profile_pic": {
      "format": "file",
      "media": {
        "binaryEncoding": "base64"
      },
      "type": "string"
    }
  }
}

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
kane-masoncommented, Aug 29, 2021

@bhagyamudgal no objections from me

0reactions
kane-masoncommented, Oct 14, 2021

Created a separate issue for our discussion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

delete operator - JavaScript - MDN Web Docs - Mozilla
The delete operator removes a property from an object. If the property's value is an object and there are no more references to...
Read more >
How To Remove a Property from a JavaScript ... - W3Schools
The delete operator deletes both the value of the property and the property itself. After deletion, the property cannot be used before it...
Read more >
Delete a property - Analytics Help - Google Support
Sign in to Google Analytics.. Click Admin, and navigate to the property you want to delete. In the PROPERTY column, click Property Settings....
Read more >
How to Delete a Property in Google Analytics? - MarketLytics
Login to your analytics account · Navigate to admin >> property >> property settings. Click on the move to trash button on top...
Read more >
How to Remove a Property from a JavaScript ... - freeCodeCamp
Let's go through each of these methods in this tutorial. Remove a Property from a JS Object with the Delete Operator. delete is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found