#json

79 bookmarks tagged with #json · RSS Feed · ← All Tags

Stop Telling Us XMPP Should Use JSON

https://www.process-one.net/blog/stop-telling-us-xmpp-should-use-json/
We’ve been building XMPP systems for over 25 years. The XML performance question comes up often in early conversations. Every single time, we end up optimizing ejabberd configuration, clustering, architecture, client protocol usage, and databases instead.

Nobody Gets Fired for Picking JSON, but Maybe They Should? · mcyoung

https://mcyoung.xyz/2024/12/10/json-sucks/
JSON is extremely popular but deeply flawed. This article discusses the details of JSON’s design, how it’s used (and misused), and how seemingly helpful “human readability” features cause headaches instead. Crucially, you rarely find JSON-based tools (except dedicated tools like jq) that can safely handle arbitrary JSON documents without a schema—common corner cases can lead to data corruption! (blog also has a neato minimap view of the whole entry on the side, like VSCode)

SQLite as a document database

https://dgl.cx/2020/06/sqlite-json-support
This makes it possible to insert JSON straight into SQLite and then have it extract data and index them, i.e. you can treat SQLite as a document database. This has been possible with PostgreSQL and obviously is what something like Elastic provides but having it available in an embedded database is very nice for lightweight stuff.

jq

http://stedolan.github.com/jq
jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.

JsonLibrary - TrimPath - Trac

http://trimpath.com/project/wiki/JsonLibrary
"Note, we have an improved implementation of JSON stringify that builds up a string array instead of doing inline string concatenation. The version below should use less memory than the original JSON implementation."

ongoing - JSON and XML

http://www.tbray.org/ongoing/When/200x/2006/12/21/JSON
"Use XML - If you want to provide general-purpose data that the receiver might want to do unforeseen weird and crazy things with, ... or if the data is potentially long-lived (as in, more than seconds) XML is the way to go."

json-xslt: XML 2 JSON

https://json-xslt.codebase.ebay.com
"An XSLT 1.0 stylesheet that can transform any XML file into JSON. You can use the stylesheet along with a server-based XSLT transform tool, such as eBay's XSLT server that works with the REST API. You could also use it with client-side tool, if you are i