Ask a question from expert

Ask now

A JSON Stands for Java Script Object Notation

3 Pages836 Words367 Views
   

Added on  2019-09-13

A JSON Stands for Java Script Object Notation

   Added on 2019-09-13

BookmarkShareRelated Documents
JSON Handleryou are tasked with creating a JSON handler. A JSON stands for JavaScript Object Notation (See: JSON Description). A JSON is a lightweight data-interchange formatted as a string that can be parsed back intothe object it represents. Your JSON handler will be a custom data structure that will reconstitute the JSON encoded objects in your data-structure objects. Your data structure must:1.Add new object2.Get an object3.Sort sortable objects4.Search for a specific value (binary for sortable/linear for un-sortable)5.Remove a specific object6.Export an object as a JSONYour data structure:Must parse JSON StringsMust implement at least one java data structure interfaceMust handle serializable object (to serialize and de-serialize objects)Must be able to determine an object if an object implements ComparableMust be able to determine an object’s classObjects in ObjectsA JSON object may have multiple name-value pairs in it (see: JSON Description). The value in a name-value pair can be one or more name-value pairs:{ name : { name : value , name : value } }For example, imagine that rows from a database are downloaded as JSON objects. Each row would havethe same basic format. Each “name” would be a column and each “value” would be the data in that rowfor that column and the main identifier would be the primary key identifying the row. { primary key : { “fname” : “fred” , “lname” : “jones” , “age” : “35” , “address” : “123 Main st” }In this example, there is an object whose “name” is the primary key of a database table and its value is a separate data structure of four other name-value objects. You might imagine the entire data base table is a giant data structure of all the “row objects” in the table.
A JSON Stands for Java Script Object Notation_1

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Documentation Introduction Assignment 2022
|5
|769
|12

Electronic Data Interchange | Assignment
|5
|733
|33

Basic Categories of NoSQL Databases
|4
|665
|148

NoSQL Database: Types and Uses
|9
|848
|395

Quiz-Part 2 - Answer Template
|10
|2962
|263

Database Application to a GUI Application Assignment
|3
|1080
|251