mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
17 lines
No EOL
242 B
JavaScript
Executable file
17 lines
No EOL
242 B
JavaScript
Executable file
define([
|
|
],
|
|
|
|
function () {
|
|
|
|
var Parser = {};
|
|
|
|
Parser.encode = function (message){
|
|
return JSON.stringify(message);
|
|
}
|
|
|
|
Parser.decode = function (message){
|
|
return JSON.parse(message);
|
|
}
|
|
|
|
return Parser;
|
|
}); |