method

encode

encode(value, options = {})
public

Converts a Ruby object into a JSON string.