MATLAB Answers

Extract info from .json file by matlab

182 views (last 30 days)
Zeynab Mousavikhamene
Zeynab Mousavikhamene on 5 Aug 2019
Answered: Navya Seelam on 8 Aug 2019
I need to parse a json file and extract many objects and arrays from that file. Then I am going to plot those extracted information.
I used jsondecode but it only created one big char. Shoud I use that?

  0 Comments

Sign in to comment.

Answers (1)

Navya Seelam
Navya Seelam on 8 Aug 2019
Hi,
In order to plot the data use str2num to covert the string to numeric data type. If the data in JSON was array of numbers rather than strings then the output of jsondecode would have been array of double.
For more details on conversion of JSON datatypes to MATLAB data types refer this link

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags