Skip to content

could not find to_json() method in T's namespace #1140

Description

@AistisT
nlohmann::json subscriber;	
subscriber["Name"] = &callerName;
subscriber["SubscribeTopic"] = topicToSubscribe;
subscriber["CallBackTopic"] = callBackTopic;
	

and

nlohmann::json subscriber = {
   	{ "Name", &callerName },
   	{ "SubscribeTopic", &topicToSubscribe },
   	{ "CallBackTopic", &callBackTopic },
   };

Both cause the error

Vs 2017, latest release

I seem to be unable to create json object, I've read through documentation like 20 times and there is nothing else that has been mentioned about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions