How can I access a value from a Json file inside a matlab function?
이전 댓글 표시
Hi guys,
I am running R2013a with Jsonlab plugin, and here is my problem:
I am creating a function which retrieves the value attached to a key inside a Json file. The inputs to my function are the Json file and the key, and the output should be the value (with a specific formatting)
But here is the thing: I usually access the value by writing " filename.key ", but since here the key is input as a string in the function, the program behaves as if I was calling " filename.'key' " and returns me the following error "Reference to non-existent field 'key' "
Any idea on how to go around this issue?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 JSON Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!