• Current Version: 1.1: 2018-10-08T10:15:10Z
  • First Published: 2018-10-08T10:15:10Z
  • Size: 19376
  • Supported Unity Versions: 2018.2.10
tools input-management

Lib JSON Stream

No rating !(0 Vote)
$64.87 $64.87

Lib JSON Stream is a IO stream allow your to write or read json data through any stream object.


Usages:
- optimize network messaging performance
- data size 50% smaller before compression
- data size 22% smaller after compression
- serialization 51% faster
- deserialization 47% faster


Key Features:
- encode json object to binary stream
- read json object from binary stream
- reduce encoded data size by reducing redundant property names.
- can generate smaller data compare with other JSON library
- decode binary data efficiently
- javascript and Java port available

Simple API:

// To Serialize objects
var output = new MemoryStream();
var outStream = new org.chickenbox.json.OutputStream(output);
outStream.Write(sceneData); //sceneData is your scene data structure

// To Deserialize objects
var input = new MemoryStream( serializedBytes );
var inStream = new org.chickenbox.json.InputStream(output);
var sceneData = inStream.Read<SceneData>();


Demonstrate serialize and deserialize 100 scenes with 100 objects
- data size 50% smaller before compression
- data size 22% smaller after compression
- serialization 51% faster
- deserialization 47% faster

Avg converted obj byte len by lib json stream: 13407
Avg converted obj byte len by lib json stream after compression: 6697
Total time taken by lib json stream: 0.3989317s

Avg converted obj byte len by JSON.Net: 27228
Avg converted obj byte len by JSON.Net after compression: 8586
Total time taken by JSON.Net: 0.8190006s

Total time taken by lib json stream to read json object: 0.3046894s
Total time taken by JSON.Net to read json object: 0.5754606s

Supporting libraries:
- Lib Json Stream TS
https://github.com/chickenbox/lib_json_stream_ts

- Lib Json Stream Java
https://github.com/chickenbox/lib_json_stream_java


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!