All fields

“JSON & Data Serialization” in Information Technology

28 questions across 4 technologies.

Information Technology

28 questions in 4 technologies

#QuestionTechnologyTopicLevel
1How do you convert a JavaScript object into a JSON string? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationBeginner
2How do you convert a JSON string back into a JavaScript object? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationBeginner
3What values does JSON.stringify() silently drop or convert, and why does this matter? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationIntermediate
4How do you use the replacer parameter of JSON.stringify() to control what gets serialized? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationIntermediate
5How does the reviver function in JSON.parse() work? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationIntermediate
6Why does JSON.stringify() throw a TypeError on objects with circular references, and how do you handle it? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
7How does defining a toJSON() method on a class customize its JSON.stringify() output? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
8What is structuredClone() and how does it differ from JSON.parse(JSON.stringify(obj)) for deep cloning? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
9How do you safely parse potentially untrusted JSON without exposing your app to prototype pollution? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
10How would you stream-parse a very large JSON file without loading it entirely into memory? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
11What is sqflite, and how does it let you actually use a genuinely full relational SQLite database directly within a Flutter app? Flutter › SQLite & Local Databases (sqflite)FlutterSQLite & Local Databases (sqflite)Beginner
12How do you properly parse and correctly handle several genuinely different types of incoming JSON messages received over a single shared WebSocket connection, such as distinguishing between a genuinely new chat message and a separate typing indicator event? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterIntermediate
13How do you convert a dataclass instance to and from a dictionary using dataclasses.asdict() and manual reconstruction? Python › Dataclasses & NamedTuplesPythonDataclasses & NamedTuplesAdvanced
14How do you send a POST request with a JSON body using fetch()? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSBeginner
15How does the web_socket_channel package let you actually properly connect to a WebSocket server and both send and receive messages using Dart's own familiar Stream and Sink interfaces? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterBeginner
16How can you properly store a genuinely more complex object, such as a List of strings or a Map, using SharedPreferences, given that it only genuinely natively supports fairly simple basic primitive types directly? Flutter › Local Data Storage with SharedPreferencesFlutterLocal Data Storage with SharedPreferencesIntermediate
17What is GraphQL, and how does it genuinely differ from a traditional REST API specifically in terms of exactly how a Flutter app actually requests the precise specific data it genuinely needs? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterBeginner
18What is the http package, and how does it let you actually make a genuinely basic GET request to fetch data from a remote server? Flutter › Networking with HTTP & DioFlutterNetworking with HTTP & DioBeginner
19How should a Flutter app properly validate and sanitize any data received from a server, rather than blindly and unconditionally trusting that all incoming data is genuinely already safe and well formed? Flutter › Flutter App Security Best PracticesFlutterFlutter App Security Best PracticesIntermediate
20What specific types of data can actually be sent as a message between two separate isolates in Dart, and why can an arbitrary complex object, such as one containing an active network connection, genuinely not simply be passed directly between them? Flutter › Flutter Isolates & MultithreadingFlutterFlutter Isolates & MultithreadingIntermediate
21How do you actually properly pass genuinely complex data types, such as a Map or a List, between Dart and native code through a platform channel, and what specific limitations genuinely exist regarding exactly what data can actually genuinely be sent? Flutter › Platform Channels (Native Android & iOS Integration)FlutterPlatform Channels (Native Android & iOS Integration)Intermediate
22What's the difference between localStorage and sessionStorage? JavaScript › Browser Storage & Web APIsJavaScriptBrowser Storage & Web APIsBeginner
23Why can you only store strings in localStorage, and how do you store objects? JavaScript › Browser Storage & Web APIsJavaScriptBrowser Storage & Web APIsBeginner
24How does a try/catch block work? JavaScript › Error HandlingJavaScriptError HandlingBeginner
25How do you make a basic GET request with fetch()? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSBeginner
26What is the util module's inspect() function used for, and how does it relate to how console.log() displays objects? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
27What are static methods and properties, and when do you use them? JavaScript › Classes & Class SyntaxJavaScriptClasses & Class SyntaxIntermediate
28How do you convert between a Map and a plain object? JavaScript › Map, Set, WeakMap & WeakSetJavaScriptMap, Set, WeakMap & WeakSetIntermediate