JavaScript Object Notation
Agenda
Why JSON
What’re the
features of JSON?
Applications
JSON
applications at
work or in side
projects
01
02What’s JSON
What does JSON
look like?
03
04Data is separated by commas
02Curly braces hold objects
What is
JSON
Data is in name/value pairs 03
01Square brackets hold arrays
For exchanging data
between the client and
server.
Lightweight Format
Easy for machines to
parse and generate.
Process
Easy for humans to read
and write.
Access
Work well with most of the
modern programming
language.
Scalable
WHY JSON
Applications
The .NET Core team have decided to include JSON in its framework, e.g. being able to store the
application settings within a JSON file , which is much more human readable and less bloated than
the old one App or Web.config written using the XML.
Environment Setting
A popular high-performance JSON framework for .NET, providing features such as flexible
JSON serializer, LINQ to JSON
JSON.NET
Document databases such as MongoDB use JSON documents in order to
store records, just as tables and rows store records in a relational database.
MongoDB
On K8S API server, for example, the primary format for inter-cluster
API communication is JSON for easy of client construction.
API Server/Gateway
Configuration
Programming
Data Persistent
Physical Web
Data Interchange
Thing Description
Thing Description provides machine readable metadata
describing a physical device connected to the World Wide
Web.
Configuration
JSON XML
Programming
(https://www.newtonsoft.com/json)
Programming
JSON Serializer Flexible JSON serializer for converting between .NET objects and JSON.
Programming
Linq To JSON
Create, parse, query and modify JSON using Json.NET's JObject, JArray and JV
alue objects.
Data Persistent
MongoDB comes from
the word humongous.
Humongous
A JSON-style data
store.
Document base
Can have varying sets
of fields, with different
types for each field.
Schema-Free
Using sharding stores
data across multiple
nodes, distributing the
load and the processes
across the hosts.
Scale-Out
Use Case
Data Persistent
Document
Data Interchange
Data Interchange
Data Interchange
More Cases
KubernetesAzure Digital TwinsTensorflow Serving…….
Physical Web
Physical Web
Scenario
Physical Web
Scenario
IoT + Web-enabled technologies
Physical Web
01
02
03
04
Applying the World Wide Web to IoT.
A decentralized Internet of Things.
Giving Things URLs on the web to make
them linkable and discoverable.
Defining a standard data model and
APIs to make them interoperable.
Physical Web
So…How To Do This?
Physical Web
Define Model
Physical Web
URL/API
Designing Web APIs for Things.
(Addressable resources)
Physical Web
Resource Model
http://localhost:8484/pi
Physical Web
Resource Model
http://localhost:8484/pi/sensors
Physical Web
Resource Model
http://localhost:8484/pi/sensors/temperature
Physical Web
Web Thing
Physical Web
POINT
Physical Web
Mozilla IoT
Things Gateway
Physical Web
JSON-LD
Linked Data
Link Data is a set of best practices for publishing
and connecting structured data on the web.
So that web resources can be interlinked in a wa
y that allows computers to automatically
understand the type and data of each resource.
Physical Web
FOAF
描述社會關係的語彙(Vocabulary)
Physical Web
Dublin Core
描述圖書關係的語彙(Vocabulary)
Physical Web
More
Thank you

JSON Application