jennifer widom json data introduction. jennifer widom json introduction javascript object notation...

10
Jennifer Widom JSON Data Introduc tion

Upload: imogene-chambers

Post on 17-Jan-2018

223 views

Category:

Documents


0 download

DESCRIPTION

Jennifer Widom JavaScript Object Notation (JSON)  No longer tied to JavaScript  Parsers for many languages JSON Introduction

TRANSCRIPT

Page 1: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

JSON DataIntroduction

Page 2: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

JSON IntroductionJavaScript Object Notation (JSON) Standard for “serializing” data objects, usually in files Human-readable, useful for data interchange Also useful for representing & storing semistructured data

Page 3: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

JavaScript Object Notation (JSON) No longer tied to JavaScript Parsers for many languages

JSON Introduction

Page 4: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

Basic constructs(recursive) Base values number, string, boolean, … Objects { } sets of label-value pairs Arrays [ ] lists of values

JSON Introduction

Page 5: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

Relational Model versus JSON

Relational JSON

Structure

Schema

Queries

Ordering

Implementation

JSON Introduction

Page 6: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

XML versus JSON

XML JSON

Verbosity

Complexity

Validity

Prog. Interface

Querying

JSON Introduction

Page 7: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

Syntactically valid JSONAdheres to basic structural requirements• Sets of label-value pairs• Arrays of values• Base values from predefined types

JSON Introduction

Page 8: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

Syntactically valid JSONAdheres to basic structural requirements• Sets of label-value pairs• Arrays of values• Base values from predefined types

JSONParser

JSONFile Program

objects

Syntactic errors

JSON Introduction

Page 9: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

Semantically valid JSONAdheres to basic structural requirements+ conforms to specified schema

JSONValidator

Programobjects

Syntactic errors

JSONFile

JSONSchema

Semantic errors

JSONParser

JSON Introduction

Page 10: Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually

Jennifer Widom

JavaScript Object Notation (JSON) Standard for “serializing” data objects in human-readable format Useful for data interchange, and for representing & storing semistructured data

JSON Introduction