Simple use of JSON
JSON
1, What is JSON?
The full name of JSON is JavaScript object notation. JavaScript object notation is a data structure that replaces XML. Now JSON is mostly used to store and exchange the syntax of text information for data transmission. JSON is smaller, faster and easier to parse than XML. Moreover, the JSON parser and JSON library suppor ...
Posted by webbwbb on Sun, 24 Oct 2021 13:09:02 -0700
APIJSON blog 4 AbstractSQLConfig Article 4
2021SC@SDUSC
Continue the analysis of AbstractSQLConfig last week. The following code is @ override
@Override
public boolean isExplain() {
return explain;
}
@Override
public AbstractSQLConfig setExplain(boolean explain) {
this.explain = explain;
return this;
}
@Override
public List<Join> getJoinList() {
return joinList ...
Posted by vickyjackson on Sat, 23 Oct 2021 20:04:48 -0700
Use of Go language JSON standard library
In Go language encoding/json The library provides complex functions to convert various types in Go to JSON format. We mainly use the following functions:
Serialize a slice, structure or dictionary into a JSON format string [byte stream].Deserialize a JSON format string [byte stream] into a slice, structure or dictionary.
serialize
Serializat ...
Posted by vtolbert on Thu, 21 Oct 2021 13:04:14 -0700
JSON-Initial Knowledge+Resolution
1. JSON
1.1 What is JSON
JSON (JavaScript Object Notation) is a lightweight data exchange format. JSON uses JavaScript syntax to describe data objects, uses a language-independent text format, and is easy to store and exchange.
The network media type of JSON is application/json.
1.2 JSON Scope of Use
JSON writes data objects based on ...
Posted by terfle on Thu, 14 Oct 2021 09:51:14 -0700
Generating Web application code from JSON sample data
catalogue
introduce
How does it work?
Create data model
Rendering code
BootGen SDK
Framework plug-in
Web application
In this article, you will understand the internal working principle of BootGen, a code generator that can create ASP.NET 5 and Vue 3 applications based on JSON datasets.
introduce
{
"users": [
{
"userName ...
Posted by phpfre@k* on Mon, 11 Oct 2021 12:38:39 -0700
REST Assured 71 - Compare JSON Arrays Using JSONassert Library
REST Assured series summary REST Assured 71 - Compare JSON Arrays Using JSONassert Library
introduce
API testing, sometimes you need to compare two JSON. For example, if we want to return the same result from an API every time, or part of the response body result is unchanged, we can directly compare the existing JSON response s, eliminating ...
Posted by smoked1 on Wed, 06 Oct 2021 17:55:14 -0700
REST Assured 58 - What Is JsonPath And How To Create It For Simple And Nested JSON Object?
REST Assured series summary REST Assured 58 - What Is JsonPath And How To Create It For Simple And Nested JSON Object?
introduce
If you know something about XPath, it's easier to understand JsonPath. The difference is that XPath represents the path to a node in an XML document, while JsonPath represents the path to a node in a JSON document. ...
Posted by Zeceer on Sun, 03 Oct 2021 19:48:42 -0700
express implements the post interface (no parameter / normal / JSON / form data)
post interface without parameters
const express = require('express');
const app = express();
app.post('/api/post', function(req, res) {
// Direct return object
res.send({ name: 'abc' });
});
app.listen('8088', () => {
console.log('8088');
});
After starting the terminal, use postman to test the post interface~
I ...
Posted by stereo on Sat, 18 Sep 2021 01:49:19 -0700
json parsing of Go: Marshal and Unmarshal
brief introduction
json (JavaScript object notation) is a data exchange format, which is commonly used for front and rear data transmission. Either end converts the data into a json string, and the other end parses the string into a corresponding data structure, such as string type, strcut object, etc.
go language itself provides us with json ...
Posted by ch3m1st on Fri, 17 Sep 2021 18:52:54 -0700
Take a few minutes to let you know the usage and difference between XML and JSON
catalogue
1: Introduction to XML
1.1 history of XML
1.2 what can you do by learning XML
1.3 understanding XML files
2: Syntax format of XML
2.1 XML document declaration
2.2 rules for using XML tags
2.2.1 In an XML document, there must be and only one root tag is allowed
2.2.2 Tags can be n ...
Posted by Karve on Fri, 17 Sep 2021 10:07:10 -0700