Module VCR::Cassette::Serializers::JSON
In: lib/vcr/cassette/serializers/json.rb

The JSON serializer. Uses `MultiJson` under the covers.

@see Psych @see Syck @see YAML

Methods

Constants

ENCODING_ERRORS = [MultiJson::DecodeError, ArgumentError]   @private

Public Instance methods

Deserializes the given string using `MultiJson`.

@param [String] string the JSON string @return [Hash] the deserialized object

The file extension to use for this serializer.

@return [String] "json"

Serializes the given hash using `MultiJson`.

@param [Hash] hash the object to serialize @return [String] the JSON string

[Validate]