#include "jsvalue.h" using namespace zserio; JSValue value(true);
#include "jsvalue.h" using namespace zserio; JSValue value("hello world"); std::string str = value.toString();
#include "jsvalue.h" using namespace zserio; JSValue value({ {"name", "John"}, {"age", 30}, {"address", { {"street", "123 Main St."}, {"city", "Anytown"}, {"state", "CA"} }} }); JSValue address = value["address"]; std::string city = address["city"].toString();This code creates a JSValue object representing a nested object with a name, age, and address. It then accesses the nested "address" object and retrieves the value of its "city" property. The package library used is still likely "zserio".