Convert nlohmann::json to NSDictionary

Summary: T46426056: Add utility to convert nlohmann::json to NSDictionary. Use same in instagram logging module.

Differential Revision: D16798341

fbshipit-source-id: 88923fcbcd1ffbed5a468cee4ba2f9482ba81a97
This commit is contained in:
Spencer Baumgardner
2019-08-14 17:24:15 -07:00
committed by Facebook Github Bot
parent 6a0da24eb2
commit d68dac2ce0
2 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
#import <Foundation/Foundation.h>
#include <nlohmann/json.hpp>
namespace facebook {
namespace cxxutils {
using json = nlohmann::json;
NSDictionary<NSString *, id> *convertNlohmannJSONToNSDictionary(const json &input);
}
}