Matty
Matty

Reputation: 34443

This isn't JSON. What is it?

Google's finance API returns something that's almost JSON, but isn't:

{lhs: "1 U.S. dollar",rhs: "0.636658815 British pounds",error: "",icc: true}

I'm sure this is a valid format, I'm just not sure which. What is it?

Upvotes: 1

Views: 124

Answers (1)

Brad
Brad

Reputation: 163232

That's a regular JavaScript object. It can be handled with any JavaScript parser.

Very similar to JSON, but not exactly. If it were JSON, there would be quotes around the keys.

Upvotes: 4

Related Questions