Passing nested json input arguments to a compiled Matlab executeable

1 view (last 30 days)
Hi,
I need to make a standalone executable from a function that should recieve nested json input argument, decode it, do some calculation and return a json string back. The problem is I don't know how to pass the multi-line json argument to the code. It may look something like the flollowing or even larger, with more elemsnts:
[{
"LAT": "59,8",
"LNG": "10,8",
"PGA": "27,8683261871338",
"0.05sec": "56,8101501464844",
"0.1sec": "73,5317306518555",
"0.2sec": "52,8150405883789",
"0.5sec": "19,6929798126221",
"1.0sec": "7,13469982147217",
"1.5sec": "3,69898748397827",
"2.0sec": "2,32904744148254",
"3.0sec": "1,18929076194763"
}, {
"LAT": "59,9",
"LNG": "10,8",
"PGA": "27,7563381195068",
"0.05sec": "56,5675964355469",
"0.1sec": "73,2430419921875",
"0.2sec": "52,5764465332031",
"0.5sec": "19,5574321746826",
"1.0sec": "7,06733798980713",
"1.5sec": "3,66192603111267",
"2.0sec": "2,303307056427",
"3.0sec": "1,17586052417755"
}]
Thanks in advance

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!