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
10 months 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
10 months ago

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

POSTED BY: Moderation Team
10 months ago

Group Abstract Group Abstract