TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I made a tool which fixes broken JSONs

29 点作者 prakhar897大约 1 年前

9 条评论

cebert大约 1 年前
This should likely have a disclaimer that JSON you paste into the tool can be stored. I was intentionally providing bad input and was presented with a message, “Sorry, I couldn't parse this JSON. I've logged it and will try to add it to the list of use-cases. Please let me know if this error persists.”
评论 #40030789 未加载
评论 #40059329 未加载
ryebread777大约 1 年前
Seems useful as I do occasionally get broken JSON from LLM responses and would like an easy solution to that. However, I don't see this as something I would use an API for. Especially seeing the supported fixes are relatively simple. Seems like it should be a python package. Maybe if you could somehow handle a comparison with a pre-specified json schema that would make it more valuable.
luckman212大约 1 年前
I have a simpler thing I do with a wrapper around jsonlint. Just pass a filename and it opens my editor (Sublime) right to the line and column of the error.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;luckman212&#x2F;json-lint-sh">https:&#x2F;&#x2F;github.com&#x2F;luckman212&#x2F;json-lint-sh</a>
mstudio大约 1 年前
Very cool! One note: the random sample marked: &#x27;Using a string &quot;true&quot; instead of a boolean true&#x27; leaves &quot;true&quot; as a string after parsing, instead of converting to an actual boolean.
Tazcollings大约 1 年前
I like such professional and compact tools. Doing one thing and doing it well.
genier200大约 1 年前
Nice tools,Thanks.and does the broken json repaired by ai?
评论 #40073101 未加载
dstala大约 1 年前
Wouldn&#x27;t it be easier if we ask chatGPT to fix?
评论 #40039723 未加载
blini2077大约 1 年前
This is useful, I often have this problem too
tbiehn大约 1 年前
Just imagine if we didn’t use heuristics to fix arbitrary inputs and instead we used some sort of learning algorithm that was trained on producing valid looking json - then all we’d need to do is add a prompt and start with some random noise… :P
评论 #40039787 未加载