replicator - Advanced JavaScript objects serialization.

  •        7

1: If decoding target platform doesn't support encoded error type, it will fallback to Error constructor. 2: If decoding target platform doesn't support Map, it will be decoded as array of [key, value]. 3: If decoding target platform doesn't support Set, ArrayBuffer or typed arrays, they will be decoded as array.You can extend replicator with custom type transform which will describe how to serialize/deserialize objects. You can add transforms using .addTransforms(transforms) method. And remove them using .removeTransforms(transforms) method. Both methods are chainable and accept single transform or array of transforms. You should add transforms to both encoding and decoding instances of replicator.

https://github.com/inikulin/replicator#readme

Tags
Implementation
License
Platform

   




Related Projects

MessagePack

  •    C

MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages like JSON. But unlike JSON, it is very fast and small.

svae - code for Structured Variational Autoencoders

  •    Python

Code for Composing graphical models with neural networks for structured representations and fast inference, a.k.a. structured variational autoencoders. NOTE: This code isn't yet compatible with a recent rewrite of autograd. To use an older, compatible version of autograd, clone autograd and check out commit 0f026ab.

HandyJSON - A handy swift json-object serialization/deserialization library

  •    Swift

HandyJSON is a framework written in Swift which to make converting model objects( pure classes/structs ) to and from JSON easy on iOS.Compared with others, the most significant feature of HandyJSON is that it does not require the objects inherit from NSObject(not using KVC but reflection), neither implements a 'mapping' function(writing value to memory directly to achieve property assignment).

Protocol Buffers - Google's data interchange format

  •    C++

Protocol buffers (a.k.a., protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages.

python-rapidjson - Python wrapper around rapidjson

  •    C++

RapidJSON is an extremely fast C++ JSON parser and serialization library: this module wraps it into a Python 3 extension, exposing its serialization/deserialization (to/from either bytes, str or file-like instances) and JSON Schema validation capabilities. Latest version documentation is automatically rendered by Read the Docs.


msgpack-php - msgpack.org[PHP]

  •    PHP

This extension provide API for communicating with MessagePack serialization.MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages like JSON. But unlike JSON, it is very fast and small.

JSONCPP - A C++ library for interacting with JSON

  •    C++

JsonCpp is a C++ library that allows manipulating JSON values, including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files.

FastEasyMapping - A tool for fast serializing & deserializing of JSON

  •    Objective-C

This is a fork of EasyMapping, a flexible and easy framework for JSON mapping. It turns out, that almost all popular libraries for JSON mapping are SLOW. The main reason for that is multiple trips to database during the lookup of existing objects. We decided to take an already existing flexible solution (i.e. EasyMapping) and improve its overall performance.

localStorageDB - A simple database layer for localStorage and sessionStorage for creating structured data in the form of databases and tables

  •    Javascript

localStorageDB is a simple layer over localStorage (and sessionStorage) that provides a set of functions to store structured data like databases and tables. It provides basic insert/update/delete/query capabilities. localStorageDB has no dependencies, and is not based on WebSQL. Underneath it all, the structured data is stored as serialized JSON in localStorage or sessionStorage. Browsers need to support "Local Storage" in order to make localeStorageDB working.

Hive-JSON-Serde - Read - Write JSON SerDe for Apache Hive.

  •    Java

This library enables Apache Hive to read and write in JSON format. It includes support for serialization and deserialization (SerDe) as well as JSON conversion UDF. Download the latest binaries (json-serde-X.Y.Z-jar-with-dependencies.jar and json-udf-X.Y.Z-jar-with-dependencies.jar) from congiu.net/hive-json-serde. Choose the correct verson for CDH 4, CDH 5 or Hadoop 2.3. Place the JARs into hive/lib or use ADD JAR in Hive.

structured-haskell-mode - Structured editing minor mode for Haskell in Emacs

  •    Emacs

This minor mode provides structured editing operations based on the syntax of Haskell. In short-hand it's called SHM and throughout the codebase, too. It acts a bit like, and is heavily inspired by, paredit-mode for Emacs. In using structured-haskell-mode you will find that your layout style will change and become more regular as the editor does the menial work for you. Given that, some assumptions about style are made in structured-haskell-mode and are best described by this style guide.

project-layout - Standard Go Project Layout

  •    Makefile

This is a basic layout for Go application projects. It's not an official standard defined by the core Go dev team; however, it is a set of common project layout patterns emerging in the Go ecosystem. Some of these patterns are more popular than others. It also has a number of small enhancements along with several supporting directories common to any large enough real world application. If you are trying to learn Go or if you are building a PoC or a toy project for yourself this project layout is an overkill. Start with something really simple (a single main.go file is more than enough). As your project grows keep in mind that it'll be important to make sure your code is well structured otherwise you'll end up with a messy code with lots of hidden dependencies and global state. When you have more people working on the project you'll need even more structure. That's when it's important to introduce a common way to manage packages/libraries. When you have an open source project or when you know other projects import the code from your project repository that's when it's important to have private (aka internal) packages and code. Clone the repository, keep what you need and delete everything else! Just because it's there it doesn't mean you have to use it all. None of these patterns are used in every single project. Even the vendor pattern is not unversal.

Fluently-XML

  •    

Tired of the limitations of the built-in XML serializer in .NET? Want to easily customize the serialization and deserialization process for your types? Fluently-XML is a flexible serialization framework that gives .NET developers full control over serialization/deserialization.

SenseiDB - Distributed, Realtime, Semi-Structured Database from LinkedIn

  •    Java

Sensei is a distributed data system that was built to support many product initiatives at LinkedIn, including the real-time faceted search in LinkedIn Signal and the news feed and tabs on the Homepage. Sensei is both a search engine and a database. It is designed to query and navigate through documents that consist of unstructured text and well-formed and structured metadata. Sensei is both a search engine and a database.

parsley - Parsley is a simple language for extracting structured data from web pages

  •    Shell

Parsley is a simple language for extracting structured data from web pages. Parsley consists of an powerful selector language wrapped with a JSON structure that can represent page-wide formatting.

Bagri - XML/Document DB on top of distributed cache

  •    Java

Bagri is a Document Database built on top of distributed cache solution like Hazelcast or Coherence. The system allows to process semi-structured schema-less documents and perform distributed queries on them in real-time. It scales horizontally very well with use of data sharding, when all documents are distributed evenly between distributed cache partitions.