JSON Serialization settings and Error handing improvements.