Prevent from deadlock of JSON serialization / deserialization