Grading for Assignment #1

Similar documents
Assigns a number to 110,000 letters/glyphs U+0041 is an A U+0062 is an a. U+00A9 is a copyright symbol U+0F03 is an

User Interaction: XML and JSON

User Interaction: XML and JSON

User Interaction: XML and JSON

User Interaction: XML and JSON

So, if you receive data from a server, in JSON format, you can use it like any other JavaScript object.

CSC Web Technologies, Spring Web Data Exchange Formats

This tutorial will help you understand JSON and its use within various programming languages such as PHP, PERL, Python, Ruby, Java, etc.

User Interaction: jquery

Introduction to JSON. Roger Lacroix MQ Technical Conference v

Kyle Rainville Littleton Coin Company

/ Introduction to XML

JSON as an XML Alternative. JSON is a light-weight alternative to XML for datainterchange

JSON is a light-weight alternative to XML for data-interchange JSON = JavaScript Object Notation

[301] JSON. Tyler Caraza-Harter


XML. Jonathan Geisler. April 18, 2008

Working with Database. Client-server sides AJAX JSON Data formats Working with JSON data Request Response Bytes Database

Processing XML and JSON in Python

10/18/2017. Announcements. NoSQL Motivation. NoSQL. Serverless Architecture. What is the Problem? Database Systems CSE 414

Intro to XML. Borrowed, with author s permission, from:

Packaging Data for the Web

REST. Web-based APIs

JSON - Overview JSon Terminology

JavaScript Context. INFO/CSE 100, Spring 2005 Fluency in Information Technology.

CSC 337. JavaScript Object Notation (JSON) Rick Mercer

JSON Support for Junos OS

5/2/16. Announcements. NoSQL Motivation. The New Hipster: NoSQL. Serverless. What is the Problem? Database Systems CSE 414

Data. Notes. are required reading for the week. textbook reading and a few slides on data formats and data cleaning

Database Systems CSE 414

markup language carry data define your own tags self-descriptive W3C Recommendation

CSE 344 APRIL 16 TH SEMI-STRUCTURED DATA

Introduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

COSC Software Engineering. Lecture 23: Multilingual and Component Programming

Introduction to XML 3/14/12. Introduction to XML

JavaScript Basics. The Big Picture

External data representation

5/1/17. Announcements. NoSQL Motivation. NoSQL. Serverless Architecture. What is the Problem? Database Systems CSE 414

Programming the World Wide Web by Robert W. Sebesta

XML: Managing with the Java Platform

Making a Clickable Map Display

Announcements. Two Classes of Database Applications. Class Overview. NoSQL Motivation. RDBMS Review: Serverless

INTERNET PROGRAMMING XML

Such JavaScript Very Wow

JavaScript Lecture 1

Parser Design. Neil Mitchell. June 25, 2004

CSC 326H1F, Fall Programming Languages. What languages do you know? Instructor: Ali Juma. A survey of counted loops: FORTRAN

CSE 344 JULY 9 TH NOSQL

Data Foundations. Topic Objectives. and list subcategories of each. its properties. before producing a visualization. subsetting

1. The programming language C is more than 30 years old. True or False? (Circle your choice.)

MySQL. The Right Database for GIS Sometimes

COMS 469: Interactive Media II

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Principles in Programming: Orientation & Lecture 1. SWE2004: Principles in Programming Spring 2014 Euiseong Seo

COMP9321 Web Application Engineering

Internet Engineering Task Force (IETF) Obsoletes: 4627, 7158 March 2014 Category: Standards Track ISSN:

Assignment #3 CSCI 201 Spring % of course grade Title Weathermeister Back-End API Integration

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)

A polyglot day: learning from language paradigms. Benson Joeris Kathleen Dollard

Working with JavaScript

Computer Science & Engineering 120 Learning to Code

Internet Engineering Task Force (IETF) Request for Comments: 8259 Obsoletes: 7159 December 2017 Category: Standards Track ISSN:

Full file at

A synchronous J avascript A nd X ml

CS Final Exam Review Suggestions - Spring 2018

Web Standards Mastering HTML5, CSS3, and XML

Data Structures And Algorithms Using Java PDF

Class Overview. Two Classes of Database Applications. NoSQL Motivation. RDBMS Review: Client-Server. RDBMS Review: Serverless

BDS Query. JSON Query Syntax

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

Why Discuss JavaScript? CS312: Programming Languages. Lecture 21: JavaScript. JavaScript Target. What s a Scripting Language?

CS312: Programming Languages. Lecture 21: JavaScript

Programming Languages, Summary CSC419; Odelia Schwartz

Data Formats. Course NDBI040: Big Data Management and NoSQL Databases. Lecture 06: Martin Svoboda

Server side basics CS380

CS252 Advanced Programming Language Principles. Prof. Tom Austin San José State University Fall 2013

Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013

WME MathEdit. An initial report on the WME tool for creating & editing mathematics. by K. Cem Karadeniz

CGS 3066: Spring 2015 JavaScript Reference

Web Scraping XML/JSON. Ben McCamish

8/27/17. CS-3304 Introduction. What will you learn? Semester Outline. Websites INTRODUCTION TO PROGRAMMING LANGUAGES

Data Formats and APIs

Creating and Working with JSON in Oracle Database

User's Guide. Version 2.2.1

Lesson 12: JavaScript and AJAX

Overview. Rationale Division of labour between script and C++ Choice of language(s) Interfacing to C++ Performance, memory

CSE 115. Introduction to Computer Science I

Take a Load Off with U2 RESTful Web Services. Nik Kesic, Lead Technical Support for Rocket U2

Introduction to Azure DocumentDB. Jeff Renz, BI Architect RevGen Partners

Plan. Language engineering and Domain Specific Languages. Language designer defines syntax. How to define language

Semantic Analysis. Outline. The role of semantic analysis in a compiler. Scope. Types. Where we are. The Compiler Front-End

EXtensible Markup Language XML

EXERCISE: Introduction to client side JavaScript

Web Programming Paper Solution (Chapter wise)

COMS 469: Interactive Media II

Outline. Introduction to Programming (in C++) Introduction. First program in C++ Programming examples

Welcome to Python 3. Some history

File Operations. Working with files in Python. Files are persistent data storage. File Extensions. CS111 Computer Programming

XML. XML Syntax. An example of XML:

The basic format structure of the HTTP request / response messages are similar and consist of the following:

Transcription:

Grading for Assignment #1-4 -35 Out of 100 points points off for not following directions Name in wrong place Wrong dimensions in image or html no name, weird links Linking to whatever page had a picture on it Bad link - late penalty

Grading for Assignment #1

Grading for Assignment #1

Grading for Assignment #1

Grading for Assignment #1

Grading for Assignment #1

Grading for Assignment #1

Grading for Assignment #1

User Interaction: XML and JSON Asst. Professor Donald J. Patterson INF 133 Fall 2011 9

HTML, XML and JSON Structured Data Formats that evolved with the web Text with a syntax applied They can represent a huge variety of information They enable data transport Different systems and technologies and programming languages depend on the syntax being standardized

XML w3schools.com

XML w3schools.com bookstore book book book title author year price title author year price title author year price Everyday Italian Giada De Laurentiis 2005 30.00 Harry Potter J K. Rowling 2005 29.99 Learning XML Erik T. Ray 2003 39.95 How is XML extensible?

JSON JSON also structured text also with a syntax applied it can also represent a huge variety of information It also enables data transport Across systems, languages, and networks So what does JSON look like?

JSON

JSON What is JSON? JSON stands for JavaScript Object Notation JSON was designed to pass data around between browsers and servers JSON has no tags, only data JSON has no meta-data

JSON JSON also does not DO Anything It is a data format A program must be written to manipulate the data To search the data To display the data To change the data

JSON JSON was developed by people who thought that the meta-data in XML was unnecessary too big too hard to maintain not that valuable

JSON http://json.org/ Details Two basic structures object: name/value pairs think Map array list of values think List

JSON http://json.org/ Details The basic type is a value which can be a string a number an object an array true false null

JSON http://json.org/ Details Object Delimited by curly braces name/values are separated by colons elements are separated by commas names are always strings values are always values

JSON http://json.org/ Details Array Delimited by square braces elements are separated by commas elements are always values

JSON http://json.org/ Details String is UNICODE is always in double quotes uses \ escape sequences

JSON http://json.org/ Details Number

JSON http://json.org/ Details White space outside of quotes is ignored

JSON

JSON http://json.org/ Supported languages ASP, ActionScript, C, C++,C#,ColdFusion, D, Delphi, E, Eiffel, Erlang, Fan, Flex, Haskell, haxe, Java, JavaScript, Lasso,Lisp,LotusScript, Lua, Objective C, Objective CAML, OpenLaszlo, Perl, PHP, Pike, PL/ SQL,PowerShell, Prolog, Python, R, Realbasic, Rebol, Ruby, Squeak, Tcl, Visual Basic, Visual FoxPro

JSON On beyond JSON JSON validation tools are easy to find No defined schema language No built-in namespaces (no meta-data!) No built-in transformation languages

XML vs JSON XML is like a Ferrari A Ferrari will get you to Las Vegas faster JSON is like a good bicycle A bicycle can go off-road XML is beautiful and powerful XML is well-engineered and well-researched JSON is much lighter weight JSON is easier to just get going fast

JSON vs XML http://www.secretgeek.net/json_3mins.asp JSON is like XML They are both human-readable text They are both hierarchical/ tree-structured Both can be parsed and used in many languages Both can be passed in AJAX requests (despite the X in AJAX)

JSON vs XML http://www.secretgeek.net/json_3mins.asp JSON is different than XML JSON does not have tags JSON is less verbose quicker to write quicker to read quicker to transport JSON can be parsed trivially using the eval() procedure in Javascript JSON has arrays, XML does not XML is extensible JSON usually isn t

JSON vs XML http://www.secretgeek.net/json_3mins.asp Using either looks like: get the JSON/XML string convert it to a data structure JSON -> eval() XML -> some parse function (lib dependent) Use the data Do not process either type of data by hand. input: Use a library to parse the data output: Create the data in native data structures Use a program or method to output the data structure in JSON/XML

Example INF 221 program class INF 133 quiz Assignment Represent this as XML JSON There is not an absolutely correct answer to how to interpret this tree in the respective languages. There are multiple ways to interpret what this tree means. "search engine" "Crossword puzzle" XML

Example