Class: Swagger::Parsers::JSONParser

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger/parsers.rb

Overview

Parses JSON content

Class Method Summary collapse

Class Method Details

.parse(content) ⇒ Hash

Parses a JSON document

Parameters:

  • content (String)

    The JSON content to parse

Returns:

  • (Hash)

    the parsed content


33
34
35
# File 'lib/swagger/parsers.rb', line 33

def self.parse(content)
  JSON.parse(content)
end