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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A Journey building a fast JSON parser and full JSONPath

124 点作者 atomicnature超过 1 年前

6 条评论

baz00超过 1 年前
Is JSON XML yet? Nearly!<p>I’m going to invent Baz’s 11th law of computing here: any data format that isn’t XML will evolve into a badly specified version of XML over time.
评论 #37855447 未加载
评论 #37855179 未加载
评论 #37855235 未加载
评论 #37855587 未加载
评论 #37854749 未加载
评论 #37854747 未加载
评论 #37856546 未加载
评论 #37855265 未加载
pstuart超过 1 年前
Slightly tangential, but Go&#x27;s JSON handling has long had room for improvement and it looks like there&#x27;s going to be a serious overhaul of its capabilities and implementation: <a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;discussions&#x2F;63397">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;discussions&#x2F;63397</a> -- I&#x27;m looking forward to seeing this land.
latchkey超过 1 年前
We all know the builtin golang JSON parser is slow.<p>How about doing comparisons against other implementations?<p>Like this one: <a href="https:&#x2F;&#x2F;github.com&#x2F;json-iterator&#x2F;go">https:&#x2F;&#x2F;github.com&#x2F;json-iterator&#x2F;go</a><p>Update: found this outdated repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;ohler55&#x2F;compare-go-json">https:&#x2F;&#x2F;github.com&#x2F;ohler55&#x2F;compare-go-json</a>
评论 #37878389 未加载
ithkuil超过 1 年前
reminder of recent efforts at standardizing JSONPath: <a href="https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;wg&#x2F;jsonpath&#x2F;about&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;wg&#x2F;jsonpath&#x2F;about&#x2F;</a>
评论 #37867206 未加载
deepakarora3超过 1 年前
Nice work! I see that that this is for processing &#x2F; parsing large data sets and where documents do not conform to a fixed structure and for Go language.<p>I made something similar in Java - unify-jdocs - <a href="https:&#x2F;&#x2F;github.com&#x2F;americanexpress&#x2F;unify-jdocs">https:&#x2F;&#x2F;github.com&#x2F;americanexpress&#x2F;unify-jdocs</a> - though this is not for parsing - it is more for reading and writing when the structure of the document is known - read and write any JSONPath in one line of code and use model documents to define the structure of the data document (instead of using JSONSchema which I found very unwieldy to use) - no POJOs or model classes - along with many other features. Posting here as the topic is relevant and it may help people in the Java world. We have used it intensively within Amex for a very large complex project and it has worked great for us.
tomthe超过 1 年前
I like the &quot;Simple Encoding Notation&quot; (SEN) of the underlying library: <a href="https:&#x2F;&#x2F;github.com&#x2F;ohler55&#x2F;ojg&#x2F;blob&#x2F;develop&#x2F;sen.md">https:&#x2F;&#x2F;github.com&#x2F;ohler55&#x2F;ojg&#x2F;blob&#x2F;develop&#x2F;sen.md</a><p>&quot; A valid example of a SEN document is:<p>{ one: 1 two: 2 array: [a b c] yes: true } &quot;
评论 #37854605 未加载
评论 #37854407 未加载
评论 #37855203 未加载
评论 #37854897 未加载