腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(7139)
视频
沙龙
1
回答
How
can
I
`
nlohmann
::
json
::
get
<
std
::
shared_ptr
<
const
T
>>`?
、
、
、
、
adl_serializer<
std
::
shared_ptr
<
T
>> { } static void to_
json
(
json
&am
浏览 39
提问于2021-01-12
得票数 2
回答已采纳
3
回答
不能用
Nlohmann
的
JSON
表示物体内部的
get
_to向量
、
、
template <class
T
> if (v.has_value(&
nlohmann
_
json
_
t
) {
nlohmann
_
json
_j.at("components"
浏览 10
提问于2021-10-03
得票数 4
回答已采纳
1
回答
iOS 13文本到语音(TTS - AVSpeechSynthesisVoice)在一些用户更新后崩溃。
、
、
0x19f877d88 VoiceConfigImpl::
get
_
json
(unsigned int, VoiceConfig::IfMissing)
const
__1::
shared_ptr
<SharedObjectPool>&, 0ul, 1ul>(
std
::__1::piecewise_construct_
t
,
std
::__1::tuple<
nlohmann
>
const
&, <e
浏览 2
提问于2019-09-26
得票数 3
1
回答
在嵌套类中调用`operator[]‘后保持类类型
、
、
、
、
#include <
nlohmann
/
json
.hpp> public: AbstractData (
const
nlohmann
::
json
&
json
) :
nlohmann
::
json
(
json</em
浏览 0
提问于2019-08-06
得票数 2
回答已采纳
1
回答
隐藏朋友to_
json
函数意外地为
shared_ptr
解析
、
、
我希望必须使用adl_serializer专门化(而不是这里隐藏的朋友)才能找到to_
json
/from_
json
函数,因为Example类隐藏在
std
::
shared_ptr
中。(
nlohmann
::
json
& j,
const
std
::
shared_ptr
<Example>& p) { j = {{"a", p->a}, {"b"
浏览 4
提问于2022-07-27
得票数 1
回答已采纳
1
回答
在共享指针上看到意外数据
、
我正在尝试将
nlohmann
::
json
对象转换为
std
::
shared_ptr
<char[]>。我遇到了一个问题,共享指针中的数据似乎附加了额外的垃圾,而我的原始对象中没有这些垃圾。// Incoming
json
: {"data":[100]}
std
::
shared_ptr
<char[]> serializeJson(
nlohmann
::
json
& d) {
浏览 9
提问于2021-09-03
得票数 1
回答已采纳
2
回答
如果成员变量类型不支持
nlohmann
的
json
库,则禁用to_
json
和from_
json
、
、
、
x) : m_x(x) {} friend void to_
json
(
nlohmann
::
json
& j,
const
A<
T
1>& a);template <typename
T
1> friend void from_
json
(
const
nlohmann
::
json
& j, A
浏览 14
提问于2022-08-16
得票数 0
1
回答
如何从
nlohmann
json
获得价值
、
谢谢using
json
=
nlohmann
::
json
; stringnonce; string pass; void from_
json
(
const
json
&j, sha1infoint size; /
浏览 4
提问于2021-05-11
得票数 0
回答已采纳
1
回答
用from_
json
反序列化结构时: error:没有调用
nlohmann
::basic_
json
<>::
get
的匹配函数
、
、
、
这是结构和相关类型:typedef
std
::uint64_
t
edge_key;int main() {
json
j2; <e
浏览 7
提问于2021-12-04
得票数 1
1
回答
C++:用于架构错误的经典未定义符号
from:
std
::__1::
shared_ptr
<SmallWorld::Region>
std
::__1::
shared_ptr
<SmallWorld::Region>::make_shared,
nlohmann
::adl_serializer>
const
&>(
nlohmann
::basic_
json
<
std
::__1::map,
std
::__
浏览 0
提问于2018-02-28
得票数 0
回答已采纳
2
回答
无法连接用于检索
JSON
值的输入字符串...但是可以硬编码它
、
06-05
T
01:00:00", ...}}/1/timestamp");
std
::string base = "/Weather/";
std
::string= "2019-06-05
T
09:00:00") {
浏览 8
提问于2019-06-20
得票数 1
回答已采纳
2
回答
c++,
JSON
获取数组中的对象成员
、
、
我在程序中使用
nlohmann
::
json
来解析
json
。就像下面的
json
"arr":[ {"a":2, "b":22, "c":222, ...}, {"a":3目前,我正在使用一个for循环,并在索引处对其余的成员执行j["arr"][
i<
浏览 35
提问于2018-11-17
得票数 1
1
回答
用于动态字符串和默认值的
JSON
使用
nlohmann
::
json
、
、
、
/
json
.hpp>using namespace
std
;
json
&child = j.at
浏览 6
提问于2020-05-05
得票数 0
回答已采纳
1
回答
将字符数组转换为字符串时出现意外行为
、
、
、
class JSONContainer { explicit JSONContainer(
const
char*
const
json
) { } delete_
j
浏览 24
提问于2021-09-07
得票数 1
1
回答
JSON
输入验证器和分析器
、
、
constexpr
const
std
::array<
std
::size_
t
,
std
::tuple_size_v<_Tp>>& offsets =
std
::
get
<2>(_storage);Indices> inline void fromTuple(
const
_pack& tuple,
const
nlohmann
::
json
浏览 0
提问于2020-06-01
得票数 2
回答已采纳
2
回答
nlohmann
::
json
数组将对象转换为内存结构
、
、
#include <
nlohmann
/
json
.hpp>#include <fstream>{ {
std
::cout << it.key() << " :\n&q
浏览 39
提问于2022-02-24
得票数 1
1
回答
使用
nlohmann
json
包从
json
转换时出错
、
、
"对我的目标就是struct Event Content content;template<class Content>from_
json
(
const
nlohmann
::
json
&obj, Event<Content>").
get</e
浏览 0
提问于2020-04-28
得票数 2
回答已采纳
2
回答
在不向try/catch块发送垃圾邮件的情况下,抛出指示错误
JSON
数据位置的异常
、
score_to_win": {"prompt": "Enter score to win", "default": 500} }}void parse_
json
(
const
nlo
浏览 1
提问于2020-10-13
得票数 0
1
回答
是否有一种方法可以用
nlohmann
_
json
库序列化异构向量?
、
、
、
、
using
json
=
nlohmann
::
json
; template <typename
T
> static void to_
json
(
json
& j,
const
std
::unique
浏览 2
提问于2020-10-14
得票数 2
回答已采纳
1
回答
不能从
Json
反序列化使用nlohman
json
使用自定义类与私有成员
、
int64_
t
,BooleanType=bool,“匹配参数列表120 对象类型是:
json
Error C2672 '
nlohmann
::basic_jsonstd::map,
std
::
nlohmann
,
std
::vector<uint8_
t
,
std
::allocator<uint8_
t
>>::
get
':无匹配的重载函数找到Assignment4 Assignment4
浏览 15
提问于2022-05-03
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
腾讯会议
活动推荐
运营活动
广告
关闭
领券