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