mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
46ad8d4058
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use - shuffled around some cmake linking to simplify dependency graph - superfluous files removed
20 lines
300 B
C++
20 lines
300 B
C++
#include "json_conversions.hpp"
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
void
|
|
to_json(nlohmann::json& j, const IPRange& ipr)
|
|
{
|
|
j = ipr.ToString();
|
|
}
|
|
|
|
void
|
|
from_json(const nlohmann::json& j, IPRange& ipr)
|
|
{
|
|
ipr = IPRange{j.get<std::string>()};
|
|
}
|
|
|
|
} // namespace llarp
|