Skip to content
instance method

IPAddr#to_json

(?::JSON::State? state) -> ::String
to_json(*a)

Returns a json string containing the IP address representation.

See also #to_i #to_range #succ #to_s also in 4.1 · 3.4