json

AJAX and JSON

I have been writing simple AJAX applications for a while now. Up to now I have stuck with procedural JavaScript that fetchs raw HTML and inserts it in the page. I knew these methods were lacking, but I used them for quite a while anyway. I started reading about how to write object oriented JavaScript. I don't what took me so long to look into it. I've been using OO in C++ for about 10 years, and PHP for 3 years. I'm a big fan of objects. So tonight, I decided to write an Ajax object as part of a bigger scheme to buld myself a useful library for doing net stuff. I ran into some problems using a callback function for the xmlhttp response, but I figured it out. Next I started reading about parsing XML and JSON. I decided to try JSON since it sounded easier. I made a PHP class that converts an array of derived classes into a JSON object. I made a simple callback to parse the object on the client side, and write some boxes full of fake data into the page. Now everything is in place to use in a real application. I think I'll start with making an AJAX file/directory browser for a PHP project management system I'm developing. Then there are plenty of things I want to ajaxify.




json

SE Radio 570: Stanisław Barzowski on the jsonnet Language

Stanisław Barzowski of XTX Markets and a committer on the jsonnet project joins SE Radio's Robert Blumen for a conversation about the jsonnet programming language. A superset of JSON, jsonnet adds programming language capabilities, particularly to address the need to handle large but mostly repetitive JSON configurations. They discuss the project’s history, use cases for Grafana and Kubernetes config, and interoperability with YAML. They examine jsonnet details, including the command line, constrained capabilities of the language, and objects and inheritance, and then consider the toolchain: compiler, formatter, and linter, as well as test frameworks and testing, package management, and the language’s performance. Barzowski describes four implementations -- go, C++, Rust, and Scala -- as well as popular libraries and the standard library.




json

[ Z.171 (10/21) ] - Testing and Test Control Notation version 3: Using JSON with TTCN-3

Testing and Test Control Notation version 3: Using JSON with TTCN-3




json

[ Z.171 (10/23) ] - Testing and Test Control Notation version 3: Using JSON with TTCN-3

Testing and Test Control Notation version 3: Using JSON with TTCN-3




json

639: DX, JSON, XML, HTML, and Databases! Oh My!

How important is the DX of software vs how important is the person showing off the software, Douglas Crockford and JSON, remembering XML, trying to write better HTML for email, new TC39 proposal, workshopping t-shirts, and what do you do if you want a little bit of database on your website?




json

Loading JSON-formatted data with Ajax and `xhr.responseType='json'`

This post explains a hidden gem in the XMLHttpRequest standard that simplifies fetching and parsing JSON data through Ajax.




json

Hiding JSON-formatted data in the DOM with CSP enabled

If Content Security Policy is enabled for protection against cross-site scripting attacks (i.e. the unsafe-inline option is not set), the use of inline