λJSON JSON 替代

程序名称:λJSON

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

λJSON 介绍

λJSON 是 JSON 的嵌入式替代品,它可以让你解析和字符串化纯函数及其内容

示例代码

var LJSON = require("LJSON");// `newPlayer` is a function and Couldn't be serialized with JSON.function newPlayer(name){    return {
        name      : name,
        hp        : 12,
        atk       : 5,
        def       : 5,
        inventory : []}
};
// LJSON has no trouble doing it because `newPlayer` is pure.
var newPlayerSource = LJSON.stringify(newPlayer); 
var John            = LJSON.parse(newPlayerSource)("John");console.log("Serialized λJSON: " + newPlayerSource);console.log("Parsed and applied: " + John);

λJSON 官网

https://github.com/MaiaVictor/LJSON

相关编程语言

MuPlayer 是一款跨平台、轻量级的音频播放解决方案,...
OS FLV 是一个 开源和可嵌入网页的flv播放器。 这个...
DewPlayer音乐播放器,样式很简单,而且很实用.播放器...
JW FLV MEDIA PLAYER是一个开源的在网页上使用的Fla...
Speakker 是一个基于 Web 浏览器的音乐播放器,只提...
Player Framework 是一个开源的支持 HTML5 的视频播...