Sha256: 457622f45e8f0f91069d3cf907f2318c277fbadecd7a633f293d071d81f51ebb

Contents?: true

Size: 249 Bytes

Versions: 22

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

require 'json'

module JWT
  # JSON wrapper
  class JSON
    class << self
      def generate(data)
        ::JSON.generate(data)
      end

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

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
jwt-2.2.0 lib/jwt/json.rb
jwt-2.2.0.pre.beta.0 lib/jwt/json.rb