SlideShare a Scribd company logo
1 of 4
Download to read offline
IOSR Journal of Computer Engineering (IOSR-JCE)
e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 6, Ver. V (Nov – Dec. 2015), PP 01-04
www.iosrjournals.org
DOI: 10.9790/0661-17650104 www.iosrjournals.org 1 | Page
Q-JSON - Reduced JSON schema with high Data Representation
Efficiency
Pratik Tyagi1
1
(Bangalore,India)
Abstract: Mobility has already become the mainstream interface requirement for applications and the end
users; this is forcing all applications/companies to adopt Web services [1] based architecture. But supporting
mobility and the growing demand for better user experience comes with technical constraints such as memory
space and lower data transfer rate. This paper proposes a new reduced JSON schema (Q-JSON) that improves
data representation efficiency and thus improving on both constraints without any need of extra
encoding/decoding.
Proposed Q-JSON schema format normalizes the redundant data key information without compromising the
actual business relevant information.
Keywords: JSON Schema, Data representation efficiency, mobility, response delay, web services
I. Introduction
JSON [2] has achieved widespread adoption as the generic data representation format for fetching data
from Web services due to its use as a JavaScript data structure and lightweight data representation over the
legacy XML [3].However even with these advantages there are cases when generic schema of object
representation using JSON can be further optimized to achieve better DRE(Data Representation Efficiency).
Since data fetching operation owns major portion of user action response delay time, reducing the data transfer
size in turn reduces the response delay. This paper proposes a reduced JSON (Q-JSON) schema that allows
applications to send more business relevant information within the same data size.
This paper documents the proposed Q-JSON schema structure and comparative case study between
generic JSON schema and proposed Q-JSON schema.
II. Observation
Applications that present large homogeneous data list in one view to the user such as list of users
available in the system, uses server side APIs in Web services to convert data to the generic JSON schema
format, e.g. JAX-B [4] to convert java objects to JSON response. These APIs use generic format (1-1 mapping)
to convert business data to JSON format i.e. representing a homogeneous list of object as shown in section 2.1.
2.1 Generic JSON representation: Homogenous Single Level List
Two object representation with 4 attributes:-
[
{
AttributeName1 : AttributeValueA1,
AttributeName2 : AttributeValueA2,
AttributeName3 : AttributeValueA3,
AttributeName4 : AttributeValueA4
},
{
AttributeName1 : AttributeValueB1,
AttributeName2 : AttributeValueB2,
AttributeName3 : AttributeValueB3,
AttributeName4 : AttributeValueB4
}
]
This representation comes with major redundancy in form of repeated key information for each object;
this information can be removed without compromising the actual business relevant information and thus
improving the DRE in terms of data size.
Q-JSON - Reduced JSON schema with high Data Representation Efficiency
DOI: 10.9790/0661-17650104 www.iosrjournals.org 2 | Page
III. Proposal: Q-JSON schema
Q-JSON uses Array as its base data structure for representing the data. It normalizes the redundant data
key information and representing them as a single array once and the individual object values in separate array,
this representation provides two advantages: - a) Reduced data size b) Faster iteration due to use of Array data
structure.
Q-JSON Syntax:
{
AttributeDefinationList :[<Attr Definition>, <Attr Definition>,…],
AttributeDataList :[[<Attr Val>, <Attr Val>,…][<Attr Val>, <Attr Val>,…]]
}
Q-JSON schema can be used for representing homogenous single level data list as well as for complex
homogeneous hierarchical data structures.
3.1 Q-JSON representation: Homogenous single level List
2 object representation with 4 attributes:-
{
AttributeDefinationList: [AttributeName1, AttributeName2, AttributeName3, AttributeName4],
AttributeDataList: [
[AttributeValueA1, AttributeValueA2, AttributeValueA3, AttributeValueA4],
[AttributeValueB1, AttributeValueB2, AttributeValueB3, AttributeValueB4]
]
}
3.2 Q-JSON representation: Homogenous multi-level structure
Q-JSON schema can be extended to represent multilevel hierarchical data structure as shown below:-
{
AttributeDefinationList: [AttributeName1, AttributeName2, AttributeName3, Children],
AttributeDataList: [
[AttributeValueA1, AttributeValueA2, AttributeValueA3,
{
AttributeDefinationList:[Sub-AttributeName1, Sub-AttributeName2],
AttributeDataList:[[Sub-AttrValueA1, Sub-AttrValueA2],
[Sub-AttrValueB1, Sub-AttrValueB2]]
}
],
[AttributeValueB1, AttributeValueB2, AttributeValueB3,
{
AttributeDefinationList:[Sub-AttributeName1, Sub-AttributeName2],
AttributeDataList:[[Sub-AttrValueC1, Sub-AttrValueC2],
[Sub-AttrValueD1, Sub-AttrValueD2]]
}
]
]
}
IV. Comparative Case study
This case study uses a Web Application/client that request Web services for list of users existing in the
application. Below comparative cases take account of resultant data size based comparison b/w the Generic
JSON schema and Q-JSON schema.
4.1 Comparative Case study 1:
Sample Data Description
Object Type : USER
Sample object size : 1000, 5000, 15000 and 50000
Object Attribute Key to Value (chars) List:-
1. Name : 15 chars
2. Age : 2 chars
3. Gender : 4 chars
Q-JSON - Reduced JSON schema with high Data Representation Efficiency
DOI: 10.9790/0661-17650104 www.iosrjournals.org 3 | Page
4. Address : 100 Chars
∑ Attribute keys char length: ∑Attribute value char length Ratio = (4+3+6+7) / (15+2+4+100) = 20/121 = 0.16
Table1.Data Representation Result
No. of Objects Generic JSON format Size(KB) Q-JSON format Size(KB)
1000 163 132
5000 811 655
15000 2432 1964
50000 8106 6544
Data size reduction = 19% approx.
No. of objects: Generic JSON format data size = 6.1 (min)
No of Objects represented in 2000KB = 2000*6.1 = 12200
No. of objects: Q-JSON format data size = 7.5 (min)
No of Objects represented in 2000KB = 2000*7.5 = 15000
Increase in No. of objects represented using Q-JSON schema (Data size 2000KB) = 2800 or 23%
4.2 Comparative Case study 2
Sample Data Description
Object Type : USER
Sample object size : 1000, 5000, 15000 and 50000
Object Attribute Key to Value (chars) List:-
1. Name : 15 chars
2. Age : 2 chars
3. Gender : 4 chars
4. Address : 100 chars
5. Phone No. : 10 chars
6. Company : 23 chars
7. Designation : 17 chars
8. E-ID : 3 chars
9. Team Name : 10 chars
∑ Attribute keys char length: ∑Attribute value char length Ratio = (4+3+6+7+9+7+11+7+9) /
(15+2+4+100+10+23+17+3+10) = 63/184 = 0.34
Table2.Data Representation Result
No. of Objects Generic JSON format Size(KB) Q-JSON format Size(KB)
1000 296 208
5000 1475 1036
15000 4425 3106
50000 14747 10352
Data size reduction = 30% approx.
No. of objects: Generic JSON format data size = 3.37 (min)
No of Objects represented in 2000KB = 2000*3.37 = 6740
No. of objects: Q-JSON format data size = 4.80 (min)
No of Objects represented in 2000KB = 2000*4.80 = 9600
Increase in No of Objects represented using Q-JSON schema (Data size 2000KB) = 2860 or 42%
V. Conclusion
Q-JSON drastically improves the DRE (Data Representation Efficiency) for linear/hierarchical
homogenous data without any need of encoding. This Increase in DRE directly correlates to ratio of represented
object’s attribute key char length to their value char length.
Improving the DRE allow applications to transfer same business information in much lesser data size
as compared to the generic JSON schema representation, thus in turn decreasing the user action response delay.
Q-JSON - Reduced JSON schema with high Data Representation Efficiency
DOI: 10.9790/0661-17650104 www.iosrjournals.org 4 | Page
References
[1] Leonard Richardson, Sam Ruby, RESTful Web Services, Web services for the real world(O'Reilly Media,2007)
[2] JSON online: http://www.json.org/ - ECMA-262 (ISO/IEC 16262), ECMAScript® Language Specification, 3rd edition (December
1999)
[3] Peter Aiken, M. David Allen, XML in Data Management (Elsevier,2004)
[4] Java Architecture for XML Binding (JAXB), http://www.oracle.com/technetwork/articles/javase/index-140168.html

More Related Content

What's hot

MVP Cloud OS Week Track 1 9 Sept: Data liberty
MVP Cloud OS Week Track 1 9 Sept: Data libertyMVP Cloud OS Week Track 1 9 Sept: Data liberty
MVP Cloud OS Week Track 1 9 Sept: Data libertycsmyth501
 
Analysis of different similarity measures: Simrank
Analysis of different similarity measures: SimrankAnalysis of different similarity measures: Simrank
Analysis of different similarity measures: SimrankAbhishek Mungoli
 
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...ijseajournal
 
Javascript & SQL within database management system
Javascript & SQL within database management systemJavascript & SQL within database management system
Javascript & SQL within database management systemClusterpoint
 
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITYSOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITYIJDKP
 
Webinar: ArangoDB 3.8 Preview - Analytics at Scale
Webinar: ArangoDB 3.8 Preview - Analytics at Scale Webinar: ArangoDB 3.8 Preview - Analytics at Scale
Webinar: ArangoDB 3.8 Preview - Analytics at Scale ArangoDB Database
 
JSON and MongoDB in R
JSON and MongoDB in RJSON and MongoDB in R
JSON and MongoDB in RLeon Kim
 
Intake 38 data access 4
Intake 38 data access 4Intake 38 data access 4
Intake 38 data access 4Mahmoud Ouf
 
Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...
Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...
Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...PERICLES_FP7
 
GCUBE INDEXING
GCUBE INDEXINGGCUBE INDEXING
GCUBE INDEXINGIJDKP
 
IRJET- Sentiment Analysis of Election Result based on Twitter Data using R
IRJET- Sentiment Analysis of Election Result based on Twitter Data using RIRJET- Sentiment Analysis of Election Result based on Twitter Data using R
IRJET- Sentiment Analysis of Election Result based on Twitter Data using RIRJET Journal
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBRaghunath A
 
Intake 38 data access 1
Intake 38 data access 1Intake 38 data access 1
Intake 38 data access 1Mahmoud Ouf
 

What's hot (19)

MVP Cloud OS Week Track 1 9 Sept: Data liberty
MVP Cloud OS Week Track 1 9 Sept: Data libertyMVP Cloud OS Week Track 1 9 Sept: Data liberty
MVP Cloud OS Week Track 1 9 Sept: Data liberty
 
AtomiDB Dr Ashis Banerjee reviews
AtomiDB Dr Ashis Banerjee reviewsAtomiDB Dr Ashis Banerjee reviews
AtomiDB Dr Ashis Banerjee reviews
 
Analysis of different similarity measures: Simrank
Analysis of different similarity measures: SimrankAnalysis of different similarity measures: Simrank
Analysis of different similarity measures: Simrank
 
ADB introduction
ADB introductionADB introduction
ADB introduction
 
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...
 
Lab3cth
Lab3cthLab3cth
Lab3cth
 
Javascript & SQL within database management system
Javascript & SQL within database management systemJavascript & SQL within database management system
Javascript & SQL within database management system
 
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITYSOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
 
Webinar: ArangoDB 3.8 Preview - Analytics at Scale
Webinar: ArangoDB 3.8 Preview - Analytics at Scale Webinar: ArangoDB 3.8 Preview - Analytics at Scale
Webinar: ArangoDB 3.8 Preview - Analytics at Scale
 
JSON and MongoDB in R
JSON and MongoDB in RJSON and MongoDB in R
JSON and MongoDB in R
 
Big Data Clustering Model based on Fuzzy Gaussian
Big Data Clustering Model based on Fuzzy GaussianBig Data Clustering Model based on Fuzzy Gaussian
Big Data Clustering Model based on Fuzzy Gaussian
 
Intake 38 data access 4
Intake 38 data access 4Intake 38 data access 4
Intake 38 data access 4
 
Xml 215-presentation
Xml 215-presentationXml 215-presentation
Xml 215-presentation
 
Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...
Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...
Digital Preservation in the era of Big Data - The Diachron Platform - Acting ...
 
GCUBE INDEXING
GCUBE INDEXINGGCUBE INDEXING
GCUBE INDEXING
 
IRJET- Sentiment Analysis of Election Result based on Twitter Data using R
IRJET- Sentiment Analysis of Election Result based on Twitter Data using RIRJET- Sentiment Analysis of Election Result based on Twitter Data using R
IRJET- Sentiment Analysis of Election Result based on Twitter Data using R
 
ChemEngine ACS
ChemEngine ACSChemEngine ACS
ChemEngine ACS
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Intake 38 data access 1
Intake 38 data access 1Intake 38 data access 1
Intake 38 data access 1
 

Viewers also liked

Viewers also liked (20)

C010231319
C010231319C010231319
C010231319
 
D1803052831
D1803052831D1803052831
D1803052831
 
Orientation of Radar Antenna
Orientation of Radar AntennaOrientation of Radar Antenna
Orientation of Radar Antenna
 
Large Span Lattice Frame Industrial Roof Structure
Large Span Lattice Frame Industrial Roof StructureLarge Span Lattice Frame Industrial Roof Structure
Large Span Lattice Frame Industrial Roof Structure
 
I017654651
I017654651I017654651
I017654651
 
D012622129
D012622129D012622129
D012622129
 
D012622129
D012622129D012622129
D012622129
 
Effective Cancer Detection Using Soft Computing Technique
Effective Cancer Detection Using Soft Computing TechniqueEffective Cancer Detection Using Soft Computing Technique
Effective Cancer Detection Using Soft Computing Technique
 
K010126874
K010126874K010126874
K010126874
 
K017426872
K017426872K017426872
K017426872
 
D017332126
D017332126D017332126
D017332126
 
K010346973
K010346973K010346973
K010346973
 
E012423034
E012423034E012423034
E012423034
 
P01222104109
P01222104109P01222104109
P01222104109
 
H010435256
H010435256H010435256
H010435256
 
I1804015458
I1804015458I1804015458
I1804015458
 
Crack Detection for Various Loading Conditions in Beam Using Hilbert – Huang ...
Crack Detection for Various Loading Conditions in Beam Using Hilbert – Huang ...Crack Detection for Various Loading Conditions in Beam Using Hilbert – Huang ...
Crack Detection for Various Loading Conditions in Beam Using Hilbert – Huang ...
 
A010330109
A010330109A010330109
A010330109
 
M1803058993
M1803058993M1803058993
M1803058993
 
M010618997
M010618997M010618997
M010618997
 

Similar to A017650104

Native JSON Support in SQL2016
Native JSON Support in SQL2016Native JSON Support in SQL2016
Native JSON Support in SQL2016Ivo Andreev
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQLNoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQLEDB
 
Working with XML and JSON Serializing
Working with XML and JSON SerializingWorking with XML and JSON Serializing
Working with XML and JSON Serializingssusere19c741
 
A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...
A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...
A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...IJERA Editor
 
Get started with R lang
Get started with R langGet started with R lang
Get started with R langsenthil0809
 
Import web resources using R Studio
Import web resources using R StudioImport web resources using R Studio
Import web resources using R StudioRupak Roy
 
Going Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21cGoing Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21cJim Czuprynski
 
Enterprise Postgres
Enterprise PostgresEnterprise Postgres
Enterprise PostgresOracle Korea
 
JSON Support in DB2 for z/OS
JSON Support in DB2 for z/OSJSON Support in DB2 for z/OS
JSON Support in DB2 for z/OSJane Man
 
Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Igor Moochnick
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developersukdpe
 
February 2016 Webinar Series - Introduction to DynamoDB
February 2016 Webinar Series - Introduction to DynamoDBFebruary 2016 Webinar Series - Introduction to DynamoDB
February 2016 Webinar Series - Introduction to DynamoDBAmazon Web Services
 
Automated Syntactic Mediation for Web Service Integration
Automated Syntactic Mediation for Web Service IntegrationAutomated Syntactic Mediation for Web Service Integration
Automated Syntactic Mediation for Web Service IntegrationMartin Szomszor
 
Modularizing RESTful Web Service Management with Aspect Oriented Programming
Modularizing RESTful Web Service Management with Aspect Oriented ProgrammingModularizing RESTful Web Service Management with Aspect Oriented Programming
Modularizing RESTful Web Service Management with Aspect Oriented ProgrammingWidhian Bramantya
 

Similar to A017650104 (20)

Native JSON Support in SQL2016
Native JSON Support in SQL2016Native JSON Support in SQL2016
Native JSON Support in SQL2016
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQLNoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
 
Working with XML and JSON Serializing
Working with XML and JSON SerializingWorking with XML and JSON Serializing
Working with XML and JSON Serializing
 
Olap
OlapOlap
Olap
 
A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...
A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...
A Case Elaboration Methodology for a Semantic Web Service Discovery System Ba...
 
Get started with R lang
Get started with R langGet started with R lang
Get started with R lang
 
Import web resources using R Studio
Import web resources using R StudioImport web resources using R Studio
Import web resources using R Studio
 
Going Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21cGoing Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21c
 
Json
JsonJson
Json
 
Enterprise Postgres
Enterprise PostgresEnterprise Postgres
Enterprise Postgres
 
JSON Support in DB2 for z/OS
JSON Support in DB2 for z/OSJSON Support in DB2 for z/OS
JSON Support in DB2 for z/OS
 
Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developers
 
Services Stanford 2012
Services Stanford 2012Services Stanford 2012
Services Stanford 2012
 
February 2016 Webinar Series - Introduction to DynamoDB
February 2016 Webinar Series - Introduction to DynamoDBFebruary 2016 Webinar Series - Introduction to DynamoDB
February 2016 Webinar Series - Introduction to DynamoDB
 
MySQL Rises with JSON Support
MySQL Rises with JSON SupportMySQL Rises with JSON Support
MySQL Rises with JSON Support
 
Automotive industry ppt
Automotive industry pptAutomotive industry ppt
Automotive industry ppt
 
Json
JsonJson
Json
 
Automated Syntactic Mediation for Web Service Integration
Automated Syntactic Mediation for Web Service IntegrationAutomated Syntactic Mediation for Web Service Integration
Automated Syntactic Mediation for Web Service Integration
 
Modularizing RESTful Web Service Management with Aspect Oriented Programming
Modularizing RESTful Web Service Management with Aspect Oriented ProgrammingModularizing RESTful Web Service Management with Aspect Oriented Programming
Modularizing RESTful Web Service Management with Aspect Oriented Programming
 

More from IOSR Journals (20)

A011140104
A011140104A011140104
A011140104
 
M0111397100
M0111397100M0111397100
M0111397100
 
L011138596
L011138596L011138596
L011138596
 
K011138084
K011138084K011138084
K011138084
 
J011137479
J011137479J011137479
J011137479
 
I011136673
I011136673I011136673
I011136673
 
G011134454
G011134454G011134454
G011134454
 
H011135565
H011135565H011135565
H011135565
 
F011134043
F011134043F011134043
F011134043
 
E011133639
E011133639E011133639
E011133639
 
D011132635
D011132635D011132635
D011132635
 
C011131925
C011131925C011131925
C011131925
 
B011130918
B011130918B011130918
B011130918
 
A011130108
A011130108A011130108
A011130108
 
I011125160
I011125160I011125160
I011125160
 
H011124050
H011124050H011124050
H011124050
 
G011123539
G011123539G011123539
G011123539
 
F011123134
F011123134F011123134
F011123134
 
E011122530
E011122530E011122530
E011122530
 
D011121524
D011121524D011121524
D011121524
 

Recently uploaded

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 

Recently uploaded (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

A017650104

  • 1. IOSR Journal of Computer Engineering (IOSR-JCE) e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 6, Ver. V (Nov – Dec. 2015), PP 01-04 www.iosrjournals.org DOI: 10.9790/0661-17650104 www.iosrjournals.org 1 | Page Q-JSON - Reduced JSON schema with high Data Representation Efficiency Pratik Tyagi1 1 (Bangalore,India) Abstract: Mobility has already become the mainstream interface requirement for applications and the end users; this is forcing all applications/companies to adopt Web services [1] based architecture. But supporting mobility and the growing demand for better user experience comes with technical constraints such as memory space and lower data transfer rate. This paper proposes a new reduced JSON schema (Q-JSON) that improves data representation efficiency and thus improving on both constraints without any need of extra encoding/decoding. Proposed Q-JSON schema format normalizes the redundant data key information without compromising the actual business relevant information. Keywords: JSON Schema, Data representation efficiency, mobility, response delay, web services I. Introduction JSON [2] has achieved widespread adoption as the generic data representation format for fetching data from Web services due to its use as a JavaScript data structure and lightweight data representation over the legacy XML [3].However even with these advantages there are cases when generic schema of object representation using JSON can be further optimized to achieve better DRE(Data Representation Efficiency). Since data fetching operation owns major portion of user action response delay time, reducing the data transfer size in turn reduces the response delay. This paper proposes a reduced JSON (Q-JSON) schema that allows applications to send more business relevant information within the same data size. This paper documents the proposed Q-JSON schema structure and comparative case study between generic JSON schema and proposed Q-JSON schema. II. Observation Applications that present large homogeneous data list in one view to the user such as list of users available in the system, uses server side APIs in Web services to convert data to the generic JSON schema format, e.g. JAX-B [4] to convert java objects to JSON response. These APIs use generic format (1-1 mapping) to convert business data to JSON format i.e. representing a homogeneous list of object as shown in section 2.1. 2.1 Generic JSON representation: Homogenous Single Level List Two object representation with 4 attributes:- [ { AttributeName1 : AttributeValueA1, AttributeName2 : AttributeValueA2, AttributeName3 : AttributeValueA3, AttributeName4 : AttributeValueA4 }, { AttributeName1 : AttributeValueB1, AttributeName2 : AttributeValueB2, AttributeName3 : AttributeValueB3, AttributeName4 : AttributeValueB4 } ] This representation comes with major redundancy in form of repeated key information for each object; this information can be removed without compromising the actual business relevant information and thus improving the DRE in terms of data size.
  • 2. Q-JSON - Reduced JSON schema with high Data Representation Efficiency DOI: 10.9790/0661-17650104 www.iosrjournals.org 2 | Page III. Proposal: Q-JSON schema Q-JSON uses Array as its base data structure for representing the data. It normalizes the redundant data key information and representing them as a single array once and the individual object values in separate array, this representation provides two advantages: - a) Reduced data size b) Faster iteration due to use of Array data structure. Q-JSON Syntax: { AttributeDefinationList :[<Attr Definition>, <Attr Definition>,…], AttributeDataList :[[<Attr Val>, <Attr Val>,…][<Attr Val>, <Attr Val>,…]] } Q-JSON schema can be used for representing homogenous single level data list as well as for complex homogeneous hierarchical data structures. 3.1 Q-JSON representation: Homogenous single level List 2 object representation with 4 attributes:- { AttributeDefinationList: [AttributeName1, AttributeName2, AttributeName3, AttributeName4], AttributeDataList: [ [AttributeValueA1, AttributeValueA2, AttributeValueA3, AttributeValueA4], [AttributeValueB1, AttributeValueB2, AttributeValueB3, AttributeValueB4] ] } 3.2 Q-JSON representation: Homogenous multi-level structure Q-JSON schema can be extended to represent multilevel hierarchical data structure as shown below:- { AttributeDefinationList: [AttributeName1, AttributeName2, AttributeName3, Children], AttributeDataList: [ [AttributeValueA1, AttributeValueA2, AttributeValueA3, { AttributeDefinationList:[Sub-AttributeName1, Sub-AttributeName2], AttributeDataList:[[Sub-AttrValueA1, Sub-AttrValueA2], [Sub-AttrValueB1, Sub-AttrValueB2]] } ], [AttributeValueB1, AttributeValueB2, AttributeValueB3, { AttributeDefinationList:[Sub-AttributeName1, Sub-AttributeName2], AttributeDataList:[[Sub-AttrValueC1, Sub-AttrValueC2], [Sub-AttrValueD1, Sub-AttrValueD2]] } ] ] } IV. Comparative Case study This case study uses a Web Application/client that request Web services for list of users existing in the application. Below comparative cases take account of resultant data size based comparison b/w the Generic JSON schema and Q-JSON schema. 4.1 Comparative Case study 1: Sample Data Description Object Type : USER Sample object size : 1000, 5000, 15000 and 50000 Object Attribute Key to Value (chars) List:- 1. Name : 15 chars 2. Age : 2 chars 3. Gender : 4 chars
  • 3. Q-JSON - Reduced JSON schema with high Data Representation Efficiency DOI: 10.9790/0661-17650104 www.iosrjournals.org 3 | Page 4. Address : 100 Chars ∑ Attribute keys char length: ∑Attribute value char length Ratio = (4+3+6+7) / (15+2+4+100) = 20/121 = 0.16 Table1.Data Representation Result No. of Objects Generic JSON format Size(KB) Q-JSON format Size(KB) 1000 163 132 5000 811 655 15000 2432 1964 50000 8106 6544 Data size reduction = 19% approx. No. of objects: Generic JSON format data size = 6.1 (min) No of Objects represented in 2000KB = 2000*6.1 = 12200 No. of objects: Q-JSON format data size = 7.5 (min) No of Objects represented in 2000KB = 2000*7.5 = 15000 Increase in No. of objects represented using Q-JSON schema (Data size 2000KB) = 2800 or 23% 4.2 Comparative Case study 2 Sample Data Description Object Type : USER Sample object size : 1000, 5000, 15000 and 50000 Object Attribute Key to Value (chars) List:- 1. Name : 15 chars 2. Age : 2 chars 3. Gender : 4 chars 4. Address : 100 chars 5. Phone No. : 10 chars 6. Company : 23 chars 7. Designation : 17 chars 8. E-ID : 3 chars 9. Team Name : 10 chars ∑ Attribute keys char length: ∑Attribute value char length Ratio = (4+3+6+7+9+7+11+7+9) / (15+2+4+100+10+23+17+3+10) = 63/184 = 0.34 Table2.Data Representation Result No. of Objects Generic JSON format Size(KB) Q-JSON format Size(KB) 1000 296 208 5000 1475 1036 15000 4425 3106 50000 14747 10352 Data size reduction = 30% approx. No. of objects: Generic JSON format data size = 3.37 (min) No of Objects represented in 2000KB = 2000*3.37 = 6740 No. of objects: Q-JSON format data size = 4.80 (min) No of Objects represented in 2000KB = 2000*4.80 = 9600 Increase in No of Objects represented using Q-JSON schema (Data size 2000KB) = 2860 or 42% V. Conclusion Q-JSON drastically improves the DRE (Data Representation Efficiency) for linear/hierarchical homogenous data without any need of encoding. This Increase in DRE directly correlates to ratio of represented object’s attribute key char length to their value char length. Improving the DRE allow applications to transfer same business information in much lesser data size as compared to the generic JSON schema representation, thus in turn decreasing the user action response delay.
  • 4. Q-JSON - Reduced JSON schema with high Data Representation Efficiency DOI: 10.9790/0661-17650104 www.iosrjournals.org 4 | Page References [1] Leonard Richardson, Sam Ruby, RESTful Web Services, Web services for the real world(O'Reilly Media,2007) [2] JSON online: http://www.json.org/ - ECMA-262 (ISO/IEC 16262), ECMAScript® Language Specification, 3rd edition (December 1999) [3] Peter Aiken, M. David Allen, XML in Data Management (Elsevier,2004) [4] Java Architecture for XML Binding (JAXB), http://www.oracle.com/technetwork/articles/javase/index-140168.html