Question: I have some JSON that I have specifically put inside a variable for this question.

Here is my json:

```
{"json":{"-K-dxZZVLv4N11BQ-tEJ":{"AssetID":1},"-K-dxwm5y1hVS68GyMhN":{"AssetID":2}}}

```

Here is what I tried:

```
var url = "https://rbxjson.firebaseio.com/catalog.json";
var recent;
$.getJSON(url, function (json) {
recent = Object.keys(json["json"])[0]["AssetID"];
alert(recent);
});

```

I'm trying to access the value of "AssetID" in "{"AssetID":1}" but I tried the above code and it doesn't work.

Answer: 
I had also thought the [`seaborn` documentation](https://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.distplot.html#seaborn.distplot) mentioned that multiple columns could be plotted simultaneously, and highlighted by color by default.

But upon re-reading, I did not see anything. Instead, I think I inferred it from [this tutorial](https://www.oreilly.com/learning/data-visualization-with-seaborn), where part of the way through, the tutorial plots a data frame with multiple columns.

---

However, the "solution" is trivial, and hopefully exactly what you're looking for:

```
sns.set(color_codes=True)
sns.set(style="white", palette="muted")
sns.distplot(df)

for col_id in df.columns:
    sns.distplot(df[col_id])

```

By default, this will alter the colors, "knowing" which one has already been used.

[![Generated image from code above (using different data set)](https://i.stack.imgur.com/CDXMl.png)](https://i.stack.imgur.com/CDXMl.png)

Note: I used a different data set, since I wasn't sure how to re-create yours.
I had similar problem because my *pandas.DataFrame* had elements of type *Object* in a column I wanted to plot (*my\_column*). So that the command:

```
print(df[my_column])

```

gave me:

```
Length: 150, dtype: object

```

The solution was 

```
sns.distplot(df[my_column].astype(float))

```

As the datatype of *my\_column* transformed to:

```
Length: 150, dtype: float64

```

[![enter image description here](https://i.stack.imgur.com/kVLnj.png)](https://i.stack.imgur.com/kVLnj.png)