Class: JWT::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/jwt/json.rb

Overview

JSON wrapper

Class Method Summary collapse

Class Method Details

.generate(data) ⇒ Object



9
10
11
# File 'lib/jwt/json.rb', line 9

def generate(data)
  ::JSON.generate(data)
end

.parse(data) ⇒ Object



13
14
15
# File 'lib/jwt/json.rb', line 13

def parse(data)
  ::JSON.parse(data)
end