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

POSTED BY: Alexander Hempfing
1 year ago


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


POSTED BY: Neil Singer
1 year ago

@Alexander Hempfing please do NOT post code as images. Make sure you know the rules:

POSTED BY: Moderation Team
1 year ago

Group Abstract Group Abstract