Not able to code generation with jsonencode

14 ビュー (過去 30 日間)
Raj
Raj 2024 年 11 月 19 日
回答済み: Sreeram 2024 年 11 月 20 日
Sir I am getting error jsonencode is not supported for code generation.
How to fix this error?

採用された回答

Sreeram
Sreeram 2024 年 11 月 20 日
Hi Raj,
The error message indicates that the code generator cannot generate code the function “jsonencode”.
You may work around this error by manually implementing the function “jsonencode” as a custom MATLAB code that is supported for code generation or as a C/C++ code. If you implement the functionality in C/C++, you may call it from inside your MATLAB code using “coder.ceval”, before generating code as usual. Here is a third-party implementation of “jsonencode” from MATLAB File Exchange that might help:
You may read more about this issue along with possible workarounds in the documentation:
I hope it helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeJSON Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by