Class: JsonType
| Defined in: | lib/Types/JsonTypes.coffee | 
| Inherits: | types.MapManager | 
Overview
Manages Object-like values.
Variables Summary
- type =
 - 
    
"JsonType"Identifies this class. Use it to check whether this is a json-type or something else.
Examples:
var x = yatta.val('unknown') if (x.type === "JsonType") { console.log JSON.stringify(x.toJson()) } - mutable_default =
 - 
    
trueWhether the default is 'mutable' (true) or 'immutable' (false)
 
Instance Method Summary
- # (void) applyDelete()
 - # (void) cleanup()
 - # (Json) toJson() Transform this to a Json.
 - # (void) setMutableDefault(mutable) Set if the default is 'mutable' or 'immutable'
 - ~ (Json) val()
 - # (void) _encode() Private
 
Instance Method Details
      #
(void)
applyDelete()
      
    
      #
(void)
cleanup()
      
    
      #
(Json)
toJson()
      
    
Transform this to a Json. If your browser supports Object.observe it will be transformed automatically when a change arrives. Otherwise you will loose all the sharing-abilities (the new object will be a deep clone)!
TODO: at the moment you don't consider changing of properties. E.g.: let x = {a:[]}. Then x.a.push 1 wouldn't change anything
      #
(void)
setMutableDefault(mutable)
      
    
Set if the default is 'mutable' or 'immutable'
      ~
(Json)
val()
      
      ~
(JsonType|WordType|String|Object)
val(name)
      
      ~
(JsonType)
val(name, content)
      
    
      #
(void)
_encode()
      Private