33 questions for “Serialization & Deserialization”

Found in 1 field. Select a question to see its full answer.

Information Technology

33 questions in 3 technologies

#QuestionTechnologyTopicLevel
1What is JSON serialization and deserialization, and how do Dart's own built in jsonEncode and jsonDecode functions let you convert genuinely freely between a Dart object and its own corresponding JSON text representation? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationBeginner
2How should you properly handle a genuinely nullable or optional field within your JSON deserialization logic, ensuring your app genuinely does not crash if a specific expected field happens to actually be missing from a given received response? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
3How do you properly convert a decoded JSON Map into a genuinely strongly typed custom Dart model class, rather than continuing to work directly with a considerably less safe raw dynamic Map throughout your entire app? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationBeginner
4How would you use a Class<T> token parameter to work around type erasure when a generic method genuinely needs runtime access to the actual type argument, such as for deserialization or reflection-based instantiation? Java › GenericsJavaGenericsIntermediate
5How does the json_serializable package let you automatically generate the required fromJson and toJson methods for your own Dart model classes, avoiding needing to write that particular repetitive boilerplate code entirely completely by hand yourself? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
6How do you properly handle deserializing a genuinely nested JSON structure, such as an order object that itself contains an embedded nested list of individual line item objects, into a properly correctly structured set of nested Dart model classes? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
7How can you properly implement genuinely custom JSON converters specifically for a given specific type that json_serializable does not already directly know exactly how to properly handle by default, such as converting a DateTime value to and from a specific particular custom string format? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationAdvanced
8What are the practical performance considerations of parsing a genuinely very large JSON response, and how does moving that particular parsing work onto a genuinely separate isolate help meaningfully avoid causing your app's own visible interface to freeze? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationAdvanced
9What are the ordinal() and name() methods on an enum constant, and why is relying on ordinal() for persistence or serialization considered dangerous? Java › EnumsJavaEnumsIntermediate
10How would you implement object serialization using ObjectOutputStream/ObjectInputStream, and what does the Serializable marker interface and serialVersionUID actually do? Java › I/O & NIOJavaI/O & NIOIntermediate