24 lines
324 B
Plaintext
24 lines
324 B
Plaintext
var nota = this
|
|
|
|
var json = use('json')
|
|
|
|
var encode = nota.encode
|
|
|
|
function nota_tostring()
|
|
{
|
|
return json.encode(nota.decode(this))
|
|
}
|
|
|
|
var nota_obj = {
|
|
toString: nota_tostring
|
|
}
|
|
|
|
nota.encode = function(obj, replacer)
|
|
{
|
|
var result = encode(obj,replacer)
|
|
result.toString = nota_tostring
|
|
return result
|
|
}
|
|
|
|
return nota
|