Message Boards Message Boards

Select data out of JSON Weblink?

Dear all,

I would like to select a time series which I imported through a website in JSON format. However, I am new to Mathematica and not aware how to select all second arguments.

Please find a picture attached. I would like to select all prices after "->" and plot the according time, which is displayed as time, too. Import in Mathematica Can someone please help me?

Thank you in advance!

Best regards Alex

2 Replies

Alex,

Your Import returns a nested Association. "bpi" has a value and there is a value for each date. Please read the documentation on Association. You reference the values like this:

In[1]:= a["bpi"]["2011-02-01"]

Out[1]= 0.7

Regards

POSTED BY: Neil Singer

@Alexander Hempfing please do NOT post code as images. Make sure you know the rules: https://wolfr.am/READ-1ST

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract