Closed sonologic closed 11 years ago
Both are valid. Don't worry about escaped and non-escaped slashes.
But then it should also be
"wind":[{"name":"outside", "speed":0.3, "gust": 1, "unit":"m\/s", "direction":"SE"}],
and
"feeds":[
{"name":"blog","type":"application\/rss+xml","url":"https:\/\/revspace.nl\/blog.rss"},
{"name":"calendar","type":"text\/calendar","url":"https:\/\/revspace.nl\/revspace.ical"}
],
As already said, both are valid in JSON. Some libraries are reencoding automatically whilst others don't. Every library should read both variants, otherwise they're not working correctly.
I am also not sure why the example includes both "http://" as well as "http:\/\/". JSON specifies \/\/, though apparently a bunch of libraries do not implement this encoding (including, incidentally, node.js :-/)