Wrap cjson.encode in a pcall in SamplesDecoder and ResourcesDecoder

Change-Id: I541e241d4c398c458e7ec098debef6d241a954d9
2 files changed