- May 2024
-
spec.matrix.org spec.matrix.org
-
JSON
Meh. Verbose, bad types, needs parsing.
Tags
Annotators
URL
-
- Mar 2024
- Nov 2023
-
datatracker.ietf.org datatracker.ietf.org
-
developer.okta.com developer.okta.com
-
JSON HAL
-
-
dave.cheney.net dave.cheney.net
Tags
Annotators
URL
-
- Oct 2023
-
hbz.github.io hbz.github.io
Tags
Annotators
URL
-
-
github.com github.com
-
docs.atomicdata.dev docs.atomicdata.dev
Tags
Annotators
URL
-
-
perso.liris.cnrs.fr perso.liris.cnrs.fr
-
w3c.github.io w3c.github.io
-
www.baeldung.com www.baeldung.com
Tags
Annotators
URL
-
-
www.w3.org www.w3.org
-
vega.github.io vega.github.ioOverview1
-
vega.github.io vega.github.io
- Sep 2023
- Aug 2023
-
ajv.js.org ajv.js.org
-
Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization.
-
-
stackoverflow.com stackoverflow.com
-
application/xml: data-size: XML very verbose, but usually not an issue when using compression and thinking that the write access case (e.g. through POST or PUT) is much more rare as read-access (in many cases it is <3% of all traffic). Rarely there where cases where I had to optimize the write performance existence of non-ascii chars: you can use utf-8 as encoding in XML existence of binary data: would need to use base64 encoding filename data: you can encapsulate this inside field in XML application/json data-size: more compact less that XML, still text, but you can compress non-ascii chars: json is utf-8 binary data: base64 (also see json-binary-question) filename data: encapsulate as own field-section inside json
-
- Jul 2023
-
www.digitalocean.com www.digitalocean.com
-
If the JSON o
نکته خیلی مهمی که میگه اینه که حتما باید Value ها حاوی کلید باشند مگرنه به مشکل میخوره
-
request.get_json()
چه تابع جالبی که میاد اطلاعات JSON را به Python تبدیل می کند
-
s:
قوانین تبدیل JSON به Python dict: اولا اگر در Json حالت Key و Value داشته باشد، در پایتون به صورت Dictionary است. دوما آرایه در Json به List در پایتون تبدیل می شود. سوما Value هایی که داخل " " باشد به Sting در پایتون تبدیل می شود. چهارما باحاله نگاه کن :) پنجما اعدادی که " " نداشته باشد به اعداد تبدیل می شود.
-
In P
هر وقت اسم JSON پیش می اید نام POSTMAN می درخشد
-
Usin
حالا رفت سراغ Json چون خیلی بهتر از Query String و Form Data براد اطلاعات را میفرسته. برای اطلاعات پیچیده تر بهتر است.
-
- May 2023
-
datatracker.ietf.org datatracker.ietf.org
-
www.w3.org www.w3.org
Tags
Annotators
URL
-
-
Tags
Annotators
URL
-
-
www.npmjs.com www.npmjs.com
Tags
Annotators
URL
-
- Apr 2023
-
www.w3.org www.w3.org
-
schema.org schema.org
Tags
Annotators
URL
-
-
iiif.io iiif.io
Tags
Annotators
URL
-
-
jpadfield.github.io jpadfield.github.io
-
vocab.getty.edu vocab.getty.edu
Tags
Annotators
URL
-
-
linked.art linked.artModel1
Tags
Annotators
URL
-
-
linked.art linked.art
Tags
Annotators
URL
-
-
linked.art linked.art
Tags
Annotators
URL
-
- Mar 2023
-
stackoverflow.com stackoverflow.com
-
Exactly my thoughts on the matter! I'm coming from XML SOAP background and concept of schema just got into my blood and JSON documents rather don't announce their schema. To me it's whether server "understands" the request or not. If server doesn't know what "sales_tax" is then it's simply 400: "I have no idea what you sent me but definitely not what I want.".
-
-
github.com github.com
-
dummyjson.com dummyjson.com
-
-
dbconvert.com dbconvert.com
Tags
Annotators
URL
-
-
datatracker.ietf.org datatracker.ietf.org
Tags
Annotators
URL
-
-
dataprotocols.org dataprotocols.org
Tags
Annotators
URL
-
-
-
Pitfall #1: Server-Side Rendering Attacker-Controlled Initial State
```html
<script>window.__STATE__ = ${JSON.stringify({ data })}</script>```
-
-
thomasnguyen.site thomasnguyen.site
-
One option is to use the serialize-javascript NPM module to escape the rendered JSON.
html { username: "pwned", bio: "</script><script>alert('XSS Vulnerability!')</script>" }
-
This is risky because JSON.stringify() will blindly turn any data you give it into a string (so long as it is valid JSON) which will be rendered in the page. If { data } has fields that un-trusted users can edit like usernames or bios, they can inject something like this:
json { username: "pwned", bio: "</script><script>alert('XSS Vulnerability!')</script>" }
-
Sometimes when we render initial state, we dangerously generate a document variable from a JSON string. Vulnerable code looks like this:
```html
<script>window.__STATE__ = ${JSON.stringify({ data })}</script>```
-
-
adaptivecards.io adaptivecards.io
Tags
Annotators
URL
-
- Feb 2023
-
ndjson.org ndjson.orgndjson1
Tags
Annotators
URL
-
-
www.tzi.de www.tzi.de
-
cddl.anweiss.tech cddl.anweiss.tech
-
-
www.bortzmeyer.org www.bortzmeyer.org
Tags
Annotators
URL
-
-
datatracker.ietf.org datatracker.ietf.org
Tags
Annotators
URL
-
-
goessner.net goessner.net
-
<table><tbody><tr class="evn"><td> XPath </td><td> JSONPath </td><td> Description </td></tr> <tr class="odd"><td> / </td><td> $ </td><td class="lft">the root object/element </td></tr> <tr class="evn"><td> . </td><td> @ </td><td class="lft">the current object/element </td></tr> <tr class="odd"><td> / </td><td> . or [] </td><td class="lft">child operator </td></tr> <tr class="evn"><td> .. </td><td> n/a </td><td class="lft">parent operator </td></tr> <tr class="odd"><td> // </td><td> .. </td><td class="lft">recursive descent. JSONPath borrows this syntax from E4X. </td></tr> <tr class="evn"><td> * </td><td> * </td><td class="lft">wildcard. All objects/elements regardless their names. </td></tr> <tr class="odd"><td> @ </td><td> n/a </td><td class="lft">attribute access. JSON structures don't have attributes. </td></tr> <tr class="evn"><td> [] </td><td> [] </td><td class="lft">subscript operator. XPath uses it to iterate over element collections and for predicates. In Javascript and JSON it is the native array operator. </td></tr> <tr class="odd"><td> | </td><td> [,] </td><td class="lft">Union operator in XPath results in a combination of node sets. JSONPath allows alternate names or array indices as a set. </td></tr> <tr class="evn"><td> n/a </td><td> [start:end:step] </td><td class="lft">array slice operator borrowed from ES4. </td></tr> <tr class="odd"><td> [] </td><td> ?() </td><td class="lft">applies a filter (script) expression. </td></tr> <tr class="evn"><td> n/a </td><td> () </td><td class="lft">script expression, using the underlying script engine. </td></tr> <tr class="odd"><td> () </td><td> n/a </td><td class="lft">grouping in Xpath </td></tr></tbody></table>
Tags
Annotators
URL
-
-
www.baeldung.com www.baeldung.com
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
- Jan 2023
-
openprovenance.org openprovenance.org
Tags
Annotators
URL
-
-
reconciliation-api.github.io reconciliation-api.github.io
Tags
Annotators
URL
-
-
blog.datacite.org blog.datacite.org
-
console $ curl -LH "Accept: application/vnd.schemaorg.ld+json" https://doi.org/10.5438/4K3M-NYVG { "@context": "http://schema.org", "@type": "ScholarlyArticle", "@id": "https://doi.org/10.5438/4k3m-nyvg", "url": "https://blog.datacite.org/eating-your-own-dog-food/", "additionalType": "BlogPosting", "name": "Eating your own Dog Food", "author": { "name": "Martin Fenner", "givenName": "Martin", "familyName": "Fenner", "@id": "https://orcid.org/0000-0003-1419-2405" }, "description": "Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...", "license": "https://creativecommons.org/licenses/by/4.0/legalcode", "version": "1.0", "keywords": "datacite, doi, metadata, FOS: Computer and information sciences", "inLanguage": "en", "dateCreated": "2016-12-20", "datePublished": "2016-12-20", "dateModified": "2016-12-20", "isPartOf": { "@id": "https://doi.org/10.5438/0000-00ss", "@type": "CreativeWork" }, "citation": [ { "@id": "https://doi.org/10.5438/0012", "@type": "CreativeWork" }, { "@id": "https://doi.org/10.5438/55e5-t5c0", "@type": "CreativeWork" } ], "schemaVersion": "http://datacite.org/schema/kernel-4", "periodical": { "@type": "Series", "identifier": "10.5438/0000-00SS", "identifierType": "DOI" }, "publisher": { "@type": "Organization", "name": "DataCite" }, "provider": { "@type": "Organization", "name": "datacite" } }
Tags
Annotators
URL
-
-
json-ld.github.io json-ld.github.ioYAML-LD1
Tags
Annotators
URL
-
-
news.ycombinator.com news.ycombinator.com
-
The usefulness of JSON is that while both systems still need to agree on a custom protocol, it gives you an implementation for half of that custom protocol - ubiquitous libraries to parse and generate the format, so the application needs only to handle the semantics of a particular field.
To be clear: when PeterisP says parse the format, they really mean lex the format (and do some minimal checks concerning e.g. balanced parentheses). To "handle the semantics of a particular field" is a parsing concern.
-
-
github.com github.com
-
https://github.com/CondeNast/atjson
They're using annotations in this context more like CSS, but instead of adding the markup into the content as is done in HTML and processing it, they've physically separated the text and the markup entirely and are using location within the text to indicate where the formatting should take place.
-
- Dec 2022
-
arstechnica.com arstechnica.com
-
If you want to see what an activity stream looks like, and your browser renders JSON nicely, just grab a random outbox and have a look.)
https://botsin.space/users/grigornaregatsi/outbox?page=true
-
-
jfhr.me jfhr.me
-
Of course, CSV is less flexible than JSON. It's suitable when you have a list of items with mostly the same properties, and no nested structures.
-
At 100,000 entries, this list would be 2.4 MB (that's ~63% less than the JSON)
-
CSV is a format that's more lightweight than JSON and super well suited to streaming.
-
Those methods will wait until the entire response has been downloaded, and then parse it. That's because JSON is not a streaming format
To consume JSON in a streaming way, use jq
-
JSON is ubiquitous, more lightweight than XML but still flexible enough to represent any data structure you typically need
-
-
www.jsonrpc.org www.jsonrpc.org
Tags
Annotators
URL
-
-
-
To summarize the three options we’ve seen, as well as a streaming ijson-based solution:
Comparison of 4 Python's JSON libraries
Tags
Annotators
URL
-
-
www.imsglobal.org www.imsglobal.org
-
www.imsglobal.org www.imsglobal.org
-
www.jeremydormitzer.com www.jeremydormitzer.com
-
-
Spring Boot 处理 Long 类型的 json 数据,前端调用精度丢失,变成 00
-
-
-
ObjectMapper @JsonProperty 不生效问题处理(kotlin)
-
-
ktomk.github.io ktomk.github.io
-
JSON is a similar, perhaps even more popular, format (and almost[!] a subset of YAML 1.2).
almost eh?
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
Jackson 通过自定义注解来控制 json key 的格式
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
为什么说JSON不适合做配置文件?
Tags
Annotators
URL
-
-
format.digitallinguistics.io format.digitallinguistics.ioSchemas1
Tags
Annotators
URL
-
-
w3c.github.io w3c.github.io
-
linkml.io linkml.io
-
-
micro.blog micro.blog
-
https://micro.blog/posts/search?q=indieweb
an alternate form for micro.blog search functionality
Tags
Annotators
URL
-
- Nov 2022
-
synalp.frama.io synalp.frama.ioSciFed1
Tags
Annotators
URL
-
-
kcoley.github.io kcoley.github.ioglTF1
Tags
Annotators
URL
-
-
phochste.github.io phochste.github.io
-
webmasters.stackexchange.com webmasters.stackexchange.com
-
The @id keyword allows you to give a node a URI. This URI identifies the node. See Node Identifiers in the JSON-LD spec. (The equivalent in Microdata is the itemid attribute, and the equivalent in RDFa Lite is the resource attribute.)
-
-
developer.yoast.com developer.yoast.com
-
docs.joinpeertube.org docs.joinpeertube.org
Tags
Annotators
URL
-
-
datatracker.ietf.org datatracker.ietf.org
Tags
Annotators
URL
-
-
datatracker.ietf.org datatracker.ietf.org
Tags
Annotators
URL
-
-
comunica.dev comunica.dev
Tags
Annotators
URL
-
- Oct 2022
-
workers.tools workers.tools
Tags
Annotators
URL
-
-
datatracker.ietf.org datatracker.ietf.org
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
www.bortzmeyer.org www.bortzmeyer.org
Tags
Annotators
URL
-
- Sep 2022
-
datalanguage.com datalanguage.com
-
github.com github.com
-
pointer: type: string description: A string containing a JSON pointer to the specific field within a received JSON body that caused the problem, e.g. '/data/attributes/title' to refer to the `title` property within the `attributes` object that is a child of the top level `data` object. example: /data/attributes/title
-