- Dec 2020
-
developer.mozilla.org developer.mozilla.org
-
JSON.parse() does not allow single quotes
-
JSON.parse() does not allow trailing commas
-
- Nov 2020
-
stackoverflow.com stackoverflow.com
-
I have created a thin wrapper around fetch() with many improvements if you are using a purely json REST API:
-
-
wiki.alopex.li wiki.alopex.li
-
Conclusions Draw your own. No? Fine. Good Enough: JSON? Protobuf Cap’n Proto Flatbuffers CBOR msgpack Avoid: YAML XML Thrift? BSON
Alternatives to JSON which are well readable by humans. In short, JSON is still fine and seems like it will be for a long time
Tags
Annotators
URL
-
- Oct 2020
-
aaronparecki.com aaronparecki.com
-
Over the years, Google has gone from recommending uploading a text file, to parsing RDFa with a slightly modified Microformats vocabulary, to going all-in on Microdata, to then replacing Microdata with JSON-LD and the new Schema.org vocabulary. In the mean time, the Microformats hReview vocabulary hasn't changed, and has continued to be parsed by Google since it is so widely deployed. It would seem there is some advantage to using a format that was developed externally from Google, since they are unable to simply turn their backs on it and replace it with a new format whenever they want. For this reason, I'm sticking with publishing the Microformats 1 hReview markup for my reviews.
-
- Jul 2020
-
github.com github.com
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Note that the point of JSON-LD is that it's just JSON, in this case using the schema.org context to interpret the values.
-
-
json-ld.org json-ld.org
-
-
marketplace.digitalocean.com marketplace.digitalocean.com
-
Listens to changes in a PostgreSQL Database and broadcasts them over WebSocket. It works like this:the Phoenix server listens to PostgreSQL's replication functionality (using Postgres' logical decoding).it converts the byte stream into JSON.it then broadcasts over WebSocket.
-
-
code-examples.net code-examples.net
-
JSON parsing is always pain in ass. If the input is not as expected it throws an error and crashes what you are doing. You can use the following tiny function to safely parse your input. It always turns an object even if the input is not valid or is already an object which is better for most cases.
It would be nicer if the parse method provided an option to do it safely and always fall back to returning an object instead of raising exception if it couldn't parse the input.
-
- May 2020
-
github.com github.com
-
I'll change at some point the format of the JSON so that the link can also be directly stored. That way it would be mandatory/useful to provide it with the JSON.
-
-
stackabuse.com stackabuse.com
- Apr 2020
-
-
JSON-RPC is “level 0” of the Richardson Maturity Model – a model that describes the qualities of a REST design.
JSON-RPC.
You can build it by:
- using HTTP VERBs correctly
- organising your APIs into logical "resources", e.g. ("customer", "product", "catalogue")
- using correct HTTP response codes for interactions with your API
-
there was a push for standardisation of “SOAP” (simple object access protocol) APIs
Standarisation of SOAP brought a lot of good stuff but people found XML cumbersome to read.
A lot of things being solved in SOAP had to subsequently be re-solved on top of JSON using emerging open-ish standards like Swagger (now OpenAPI) and JSON:API
-
Most APIs you use, or build will be “REST-ish”.
- You'll be issuing the same kind of "HTTP requests" as the browser
- Mostly you'll get JSON responses (sometimes XML)
- You can describe these APIs as JSON-RPC or XML-RPC
-
-
www.taniarascia.com www.taniarascia.com
-
Metadata::
- Author:: Tania Rascia
- Article:: How to Use the JavaScript Fetch API to Get JSON Data
- URL:: How to Use the JavaScript Fetch API to Get JSON Data – Tania Rascia
-
-
developer.mozilla.org developer.mozilla.org
-
[
Square brackets are used for arrays.
-
,
Not to forget the "," at the end of { } block in json.
-
-
www.tutorialspoint.com www.tutorialspoint.com
-
It is an unordered set of name/value pairs.
Test question: What is an object in JSON?
-
-
www.tutorialspoint.com www.tutorialspoint.com
-
Square brackets hold arrays and values are separated by ,(comma).
Test question: What are square brackets used for?
-
JSON syntax is basically considered as a subset of JavaScript syntax;
Test question: What is JSON syntax part of?
-
name/value pairs.
Test question: How is the data in json represented?
-
-
syslog.ravelin.com syslog.ravelin.com
-
As you can see the CSV parser is 20x faster and performs 75% fewer allocations.
csv vs json. CSV is way easier to process.
-
- Mar 2020
-
www.devever.net www.devever.net
-
in XML the ordering of elements is significant. Whereas in JSON the ordering of the key-value pairs inside objects is meaningless and undefined
XML vs JSON (ordering elements)
-
XML is a document markup language; JSON is a structured data format, and to compare the two is to compare apples and oranges
XML vs JSON
-
-
engineering.instawork.com engineering.instawork.com
-
A particular strength of JSON is its support for nested data structures
JSON can facilitate arrays, such as:
"favorite_movies": [ "Diehard", "Shrek" ]
-
JSON’s origins as a subset of JavaScript can be seen with how easily it represents key/value object data. XML, on the other hand, optimizes for document tree structures, by cleanly separating node data (attributes) from child data (elements)
JSON for key/value object data
XML for document tree structures (clearly separating node data (attributes) from child data (elements))
-
The advantages of XML over JSON for trees becomes more pronounced when we introduce different node types. Assume we wanted to introduce departments into the org chart above. In XML, we can just use an element with a new tag name
-
JSON is well-suited for representing lists of objects with complex properties. JSON’s key/value object syntax makes it easy. By contrast, XML’s attribute syntax only works for simple data types. Using child elements to represent complex properties can lead to inconsistencies or unnecessary verbosity.
JSON works well for list of objects with complex properties. XML not so much
-
- Sep 2019
-
-
Central Intelligence Agency (CIA)
JSON using b:// protocol b://e0e8df26226a05c750809d50b3da2fee087fdc56b5595030697728ef1d2f849c
-
Defendant Edward Snowden
JSON http://www.bitpaste.app/tx/e0e8df26226a05c750809d50b3da2fee087fdc56b5595030697728ef1d2f849c
// BitPaste is pastebin onchain. With the ability to add a paywall. //
-
-
github.com github.com
-
A utility function to safely escape JSON for embedding in a <script> tag function safeStringify(obj)
Tags
Annotators
URL
-
- Oct 2018
-
developers.google.com developers.google.com
-
schema.press schema.press
Tags
Annotators
URL
-
-
datalanguage.com datalanguage.com
-
blog.codeship.com blog.codeship.com
Tags
Annotators
URL
-
-
www.w3.org www.w3.org
-
-
github.com github.com
-
Components.js is a dependency injection framework for JavaScript applications. Instead of hard-wiring software components together, Components.js allows these components to be instantiated and wired together declaratively using semantic configuration files. The advantage of these semantic configuration files is that software components can be uniquely and globally identified using URIs. Configurations can be written in any RDF serialization, such as JSON-LD. This software is aimed for developers who want to build modular and easily configurable and rewireable JavaScript applications.
-
-
manu.sporny.org manu.sporny.org
Tags
Annotators
URL
-
-
manu.sporny.org manu.sporny.org
-
If you want to make the Semantic Web a reality, stop making the case for it and spend your time doing something more useful, like actually making machines smarter or helping people publish data in a way that’s useful to them.
Soooo true !
Tags
Annotators
URL
-
-
-
-
-
-
github.com github.com
Tags
Annotators
URL
-
- Sep 2018
-
jsonplaceholder.typicode.com jsonplaceholder.typicode.com
Tags
Annotators
URL
-
-
npm.runkit.com npm.runkit.com
Tags
Annotators
URL
-
-
github.com github.com
-
rdf-translator.appspot.com rdf-translator.appspot.com
-
RDF Translator is a multi-format conversion tool for structured markup. It provides translations between data formats ranging from RDF/XML to RDFa or Microdata. The service allows for conversions triggered either by URI or by direct text input. Furthermore it comes with a straightforward REST API for developers.
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
1 down vote unaccept It's necessary that the term match the IRI you use for the property. For example, schema.org defines name as http://schema.org/name. In your example, you have http://www.schema.org/name. There are also several places where values which should be IRIs (URLs) are treated as text, for this you want to use something like "http://schema.org/image": {"@id": "/static/track_images_200/lr1734_2009720_1372375126.jpg"} Part of term selection looks to be sure that a value matches the appropriate @type definition within the context. For example, image is set to {"@type": "@id"}, so it will only match things that look like that.
-
-
stackoverflow.com stackoverflow.com
-
{ "@context": "https://schema.org/docs/jsonldcontext.json", "@type": ["Article", "NewsArticle", "TechArticle", "ScholarlyArticle"], "author": { "@embed": "@always" }, "creator": { "@embed": "@always" } }
-
-
github.com github.com
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
<script type="application/ld+json"> { "@context": "http://schema.org", "@type" : "WebPage", "name" : "The Name of the Webpage", "author" : { "@type" : "Person", "@id": "#tim", "name" : "Tim" }, "creator": { "@id": "#tim" }, "copyrightHolder": { "@id": "#tim" } } </script>
-
-
www.slideshare.net www.slideshare.net
-
www.slideshare.net www.slideshare.net
-
www.w3.org www.w3.org
-
-
www.oclc.org www.oclc.org
-
Pitfalls of Framed JSON-LD The choice to provide framed JSON-LD does have some downsides, though. Any entity within the graph that is repeated is only fully referenced in the flattened, framed JSON-LD. This behavior is most evident when viewing an autobiographic work, such as "The autobiography of Benjamin Franklin, 1706-1757". In the example below, you can see that the entity representing Benjamin Franklin is both a schema:creator and a schema:about. However, Benjamin Franklin’s full details only appear in one place in the framed JSON-LD. This is problematic for someone using the data in an object-oriented manner rather than treating it as a graph.
-
-
json-ld.org json-ld.org
-
-
github.com github.com
-
DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG
Tags
Annotators
URL
-
-
json-ld.org json-ld.org
-
-
www.w3.org www.w3.org
-
-
stackoverflow.com stackoverflow.com
-
developers.google.com developers.google.com
-
bentaylor2.github.io bentaylor2.github.io
-
www.slideshare.net www.slideshare.net
Tags
Annotators
URL
-
-
www.w3.org www.w3.org
-
A JSON-LD document is a representation of a directed graph. A single directed graph can have many different serializations, each expressing exactly the same information. Developers typically work with trees, represented as JSON objects. While mapping a graph to a tree can be done, the layout of the end result must be specified in advance. A Frame can be used by a developer on a JSON-LD document to specify a deterministic layout for a graph.
-
-
github.com github.com
-
<link rel="alternate" href="manifest.json" media-type="application/webpub+json"/>
Tags
Annotators
URL
-
-
www.w3.org www.w3.org
-
-
github.com github.com
Tags
Annotators
URL
-
-
www.npmjs.com www.npmjs.com
Tags
Annotators
URL
-
- Mar 2018
-
news.ycombinator.com news.ycombinator.com
-
not everything needs to be gradually extended into six mutually incompatible versions of increasing bloat
-
- Dec 2017
-
-
drupal json
-
- Nov 2017
-
courses.openulmus.org courses.openulmus.org
-
xAPI is a json based data structure that's for expressing the actions taken by a user. It's popular for tracking activity across websites because of it having a standard base schema with flexibility for providing contextual information based on use-case.
-
- Apr 2017
-
jsonapi.org jsonapi.org
-
JSON API requires use of the JSON API media type (application/vnd.api+json) for exchanging data.
means to change the
Accept
field andContent-Type
field
-
- Feb 2017
- Dec 2016
-
blog.codeship.com blog.codeship.com
-
The real benefit of JSONB: IndexesWe want our application to be fast. Without indexes, the database is forced to go from record to record (a table scan), checking to see if a condition is true. It’s no different with JSON data. In fact, it’s most likely worse since Postgres has to step in to each JSON document as well.
This solves the problem of the last implementation I handled where json (not jsonb) data was stored in postgres
-
-
www.sarahmei.com www.sarahmei.com
-
When you’re picking a data store, the most important thing to understand is where in your data — and where in its connections — the business value lies. If you don’t know yet, which is perfectly reasonable, then choose something that won’t paint you into a corner. Pushing arbitrary JSON into your database sounds flexible, but true flexibility is easily adding the features your business needs.
This is an old article but valuable thinking for system design.
-
-
www.sisense.com www.sisense.com
-
The BSON format used by MongoDB is limited to a maximum of 64 bits for representing an integer or floating point number, whereas the JSONB format used by Postgres does not have this limit. Postgres provides data constraint and validation functions to help ensure that JSON documents are more meaningful: for example, preventing attempts to store alphabetical characters where numerical values are expected. MongoDB offers automatic database sharding for easy horizontal scaling of JSON data storage. Scaling of Postgres installations has often been vertical. Horizontal scaling of Postgres is also possible, but tends to be more involved or use an additional third party solution. MongoDB also offers the possibility of increasing write throughput by deferring writing to disk. The tradeoff is potential loss of data, but this may suit users who have less need to persist their data.
Good pros and cons of Mongo vs Postgres for JsonB
-
- Nov 2016
-
3gamma.com 3gamma.com
-
Services rely on the interfaces between them to communicate and for this to work flawlessly, messages must have a format and semantics that every interface can read.
This makes JSON-LD (JSON for Linking Data http://json-ld.org/) and Hydra (A Vocabulary for Hypermedia-Driven Web APIs) interesting, see http://www.programmableweb.com/news/how-to-build-hypermedia-apis-json-ld-and-hydra/analysis/2015/07/30
-
- Jun 2016
-
access.redhat.com access.redhat.com
-
JWE
-
- Nov 2015
-
developer.microsoftband.com developer.microsoftband.com
-
Create amazing apps for Microsoft Band
Thanks to the wonders of Atom feeds, Hypothes.is's Stream will soon be available on my (at least) wrist!
-
- Mar 2015
-
lists.w3.org lists.w3.org
-
The current algorithms in the JSON-LD spec do not support the conversion of list of lists to JSON-LD. This is a "Feature at risk" [1].
List of lists issue in JSON-LD.
-
- Feb 2015
-