can any one suggest the solution, how I can create json of below format using boost json in C++
json required format is as below
{
"myarray":
[
[ 12, 12, 120, 120 ],
[ 120, 12, 129, 120 ],
[ 12, 120, 120, 129 ]
],
"count": 3,
}
I tried using ptree put method, but it seems numbers are getting converted to string. Is it possible somehow using basic_tree or translator or something else in available in boost json library?