Improve record's cache reset when underlying data are updated
Improve JSON attribute encoding: never break, even if JSON invalid