class

I18n::Backends::JSON

Inherits I18n::Backend / Reference / Object

Class methods

merge_json(string)

Concatenates multiple JSONs into one in a raw string

string = <<-END
{
  "foo": "bar"
}

{
  "bar": "baz"
}
END

merge_json(string)
# {
#  "foo": "bar",
#  "bar": "baz"
# }
Source

Instance methods

load

See Backend.load.

Source