JSON.parse("[1,]") succeeds but is invalid per the JSON spec.
Created attachment 38677 [details] Patch v1
Comment on attachment 38677 [details] Patch v1 r=me
Committed r47828