Languages
[Edit]
EN

JavaScript - own schema based JSON decompression algorithm

10 points
Created by:
jarlh
635

In this short article, we would like to show how in JavaScript, write a simple JSON decompression algorithm based on custom JSON schema.

This article presents an experimental concept.

 

Motivation:
by splitting JSON into schema and data parts we are able to reduce the amount of data needed to transfer from the server always on request.

The schema should be sent once or embedded into the site code.

Compression effectiveness is visible here:

 

Practical example:

 

See also

Edit
  1. JavaScript - simple own json schema 
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join