class Burner::Library::Serialize::Json

Treat value like a Ruby object and serialize it using JSON.

Expected Payload input: anything. Payload output: string representing the output of the JSON serializer.

Public Instance Methods

perform(_output, payload) click to toggle source
# File lib/burner/library/serialize/json.rb, line 18
def perform(_output, payload)
  payload[register] = payload[register].to_json
end