--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "data<Object>:"
    body: Object to translate into JSON. If the object does not respond to :to_json, then data.inspect.to_json is returned instead.
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  js({'user' =&gt; 'Lewis', 'page' =&gt; 'home'})\n   # =&gt; &quot;{\\&quot;user\\&quot;:\\&quot;Lewis\\&quot;,\\&quot;page\\&quot;:\\&quot;home\\&quot;}&quot;\n\n  js([ 1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10 ])\n    # =&gt; &quot;[1,2,{\\&quot;a\\&quot;:3.141},false,true,null,\\&quot;4..10\\&quot;]&quot;\n"
full_name: Merb::AssetsMixin#js
is_singleton: false
name: js
params: (data)
visibility: public
