You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Vim 7.4.1165 try jsondecode('[,]'). This will produce [v:none], but this string is not a correct JSON. jsondecode('[1,]') produces [1], but JSON spec does not allow trailing commas. jsondecode('{1: 1,}') produces {'1': 1}, but JSON spec does not allow non-string keys or trailing comma.
The text was updated successfully, but these errors were encountered:
With Vim 7.4.1165 try jsondecode('[,]'). This will produce [v:none], but this string is not a correct JSON. jsondecode('[1,]') produces [1], but JSON spec does not allow
trailing commas. jsondecode('{1: 1,}') produces {'1': 1}, but JSON
spec does not allow non-string keys or trailing comma.
jsondecode() allows for a bit more than the standard. I'll update the
documentation. This takes it a bit in the direction of what JavaScript
eval() does.
Have you heard about the new Beowulf cluster? It's so fast, it executes
an infinite loop in 6 seconds.
With Vim 7.4.1165 try
jsondecode('[,]')
. This will produce[v:none]
, but this string is not a correct JSON.jsondecode('[1,]')
produces[1]
, but JSON spec does not allow trailing commas.jsondecode('{1: 1,}')
produces{'1': 1}
, but JSON spec does not allow non-string keys or trailing comma.The text was updated successfully, but these errors were encountered: