Merge: json::serialization: fix reading attributes from non-objects
authorJean Privat <jean@pryen.org>
Fri, 26 Aug 2016 16:42:23 +0000 (12:42 -0400)
committerJean Privat <jean@pryen.org>
Fri, 26 Aug 2016 16:42:23 +0000 (12:42 -0400)
commit8b64731f8c7c8fb88ebe55e6f0b1304356a0f42b
treeca98d2d1541365ec7434ebeee8d892266c81c742
parent3718cfe542334037b4d83de5bcb4694e5ad408aa
parent2b1af32103ea1e6da44064d0bceed0fb82de8912
Merge: json::serialization: fix reading attributes from non-objects

This error could arise when parsing invalid JSON strings (or non-object JSON values) and skipping the call to `deserialize`.

See @privat comment in #2291.

Pull-Request: #2295
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>