Comments (3)
More generally, we can test with this code
json_repair.loads("""{
"b": "xxxxx", // comment a.b
"c": "a"
}""")
It produces a weird result {'b': 'xxxxx', '.': 'c": "a'}
from json_repair.
Hi, I tried this with the latest version of the library and I couldn't reproduce. I am pushing a fix because I noticed that there is a different edge case but I can't reproduce this specific edge case using latest.
from json_repair.
Thanks. After checking out to the latest version, it is fixed.
from json_repair.
Related Issues (20)
- Function "repair_json" raises an AttributeError exception when called with a certain input
- Special invalid json text: no response for a long time HOT 1
- Price like numbers not properly parsed HOT 2
- repair_json incorrectly truncates JSON strings with escaped quotes and commas HOT 3
- [Bug]: Strings containing unescaped quotes followed by commas are incorrectly truncated HOT 2
- [Bug]: json_repair does not work for following json HOT 2
- [Bug]: HOT 2
- [Bug]: unescaped quotes immediately followed by comma fail. HOT 8
- [Bug]: poor repair from json to just integer HOT 6
- [Feature Request]: Get multiple valid fixes for an invalid JSON string HOT 2
- [Bug]: Fails to accurately capture value with missing opening quote if a comma comes before closing quote HOT 4
- [Bug]: Maximum recursion depth reached when parsing very long incompatible strings (2972 chars)
- [Bug]: Does not add missing comma in an array of strings but works fine with array of numbers HOT 1
- [Bug]: Failed repair on some quote cases HOT 1
- [Bug]: Unable to handle double quotes in start of string
- [Bug]: loading an ordinary string results in empty string object HOT 1
- [Bug]: Failing to parse truncated JSON (due to LLM repetition and max_tokens) HOT 1
- [Bug]: Extra backslash when repairing JSON with escaped double quote
- [Feature Request]: Add support for `mypy` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json_repair.