mololab / json-translator

jsontt 💡 - AI JSON Translator with GPT + other FREE translation modules to translate your json/yaml files into other languages ✅ Check Readme ✌ Supports GPT / DeepL / Google / Bing / Libre / Argos
https://mololab.org/jsontt/npm
MIT License
494 stars 71 forks source link

Cannot convert undefined or null to object #15

Closed Kamikoto-mono closed 1 year ago

Kamikoto-mono commented 1 year ago

Is it possible to add automatically ignoring null value?

ParvinEyvazov commented 1 year ago

Hey hello @Kamikoto-mono

Do you mean like this? :

{
  "name": null
}

or

{
  "name": undefined
}
Kamikoto-mono commented 1 year ago

{ "name": null }

ParvinEyvazov commented 1 year ago

Hi @Kamikoto-mono

With version v1.4.2 and up, now it ignores null values 🌟.

Thank you for your feedback & suggestion.