镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
jsogPublic

About

JSOG encoding for Ruby

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

JavaScript Object Graphs with Ruby

This Ruby gem serializes and deserializes cyclic object graphs in the JSOG format.

Source code

The official repository is (https://github.com/jsog/jsog-ruby).

Download

Jsog is available from rubygems.org:

$ gem install jsog

Usage

This code mimics the standard JSON ruby package:

require 'jsog'

string = JSOG.dump(cyclicGraph);
cyclicGraph = JSOG.parse(string);

It can be used to convert between object graphs directly:

require 'jsog'

jsogStructure = JSOG.encode(cyclicGraph);	// has { '@ref': 'ID' } links instead of cycles
cyclicGraph = JSOG.decode(jsogStructure);

Author

License

This software is provided under the MIT license

About

JSOG encoding for Ruby

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages