Message Boards Message Boards

Select data out of JSON Weblink?

GROUPS:

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

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

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

POSTED BY: Moderation Team
Answer
10 months ago

Group Abstract Group Abstract