Method: Chef::ApiClient#to_json

Defined in:
lib/chef/api_client.rb

#to_json(*a) ⇒ String

The JSON representation of the object.

Returns:

  • (String)

    the JSON string.



131
132
133
# File 'lib/chef/api_client.rb', line 131

def to_json(*a)
  Chef::JSONCompat.to_json(to_h, *a)
end