Jos de Jong

Results 1637 comments of Jos de Jong

Hm, maybe I like option (3) better anyway. Let me give it some more thought.

I like your idea of defining `duplicateKeys?: "error" | "ignore" | "keep" | function`. I think we can let the callback function also return one of these three values instead...

Thanks for your suggestion. I understand that this solution puts the duplicate values into an array. Silently altering the data structure doesn't sound like a good idea to me.

Can you create a jsbin or jsfiddle to demonstrate the issue? It's hard to guess what's going on exactly from the code snippet that you posted.

That is a great idea, I like it 👍. Thanks for your suggestion.

See https://github.com/josdejong/jsonrepair/issues/84#issuecomment-1366644691

Hm... so there is work to do there. Maybe this can work via [`js2py`](https://github.com/PiotrDabkowski/Js2Py/issues/324)? I tried it out but the library doesn't support python 3.12 unfortunately and throws errors. See...

I found [PythonMonkey](https://github.com/Distributive-Network/PythonMonkey#pythonmonkey) and that works like a charm: 1. First, install the npm package in your project via `npm install jsonrepair` 2. Install `PythonMonkey` via `pip install pythonmonkey` 3....

That's cool 😎 . I've added a section in the readme describing how to use `jsonrepair` in Python: https://github.com/josdejong/jsonrepair?tab=readme-ov-file#python I think this more or less removes the need for a...

👍 Someone is also working on a Python port of the library, see: https://github.com/SelectedSolutionManagement/jsonrepair (as far as I know it's not yet published at pypi).