ultimatepp/reference/ValueRef/ValueRef.cpp
cxl ad4141809b reference: ValueRef
git-svn-id: svn://ultimatepp.org/upp/trunk@7678 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-09-13 13:04:37 +00:00

15 lines
295 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_FILE|LOG_COUT);
Value v;
for(int i = 0; i < 3; i++) {
Value& p = v.At(i)("person");
p("name") = "Name" + AsString(i + 1);
p("lastname") = "LastName" + AsString(i + 1);
}
LOG(AsJSON(v));
}