Using the BOOMLAGOON library.
I'm trying to generate a JSON object in C# with Unity3d.
string GroupName="Night Fighters";
string GroupMemberID="TG1";
string GroupMemberName="Tommy Gun";
string GroupEquipmentDescription="Tommy Gun";
public JSONObject Testjson()
{
var data = new JSONObject
{
{"Group Name" , GroupName},
{"Group Member" , GroupMemberID, GroupMemberName},
{"Group Equipment" , GroupEquipmentID, GroupEquipmentDescription}
};
Debug.Log(data);
return data;
}
It's telling me that the overload is wrong - add takes three arguments. Not sure how to do a nested Member or equipment. I've tried () and {} and []. Nothing works.