[{"data":1,"prerenderedAt":9411},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/json-data":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524,"expanded":13},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615,"expanded":13},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679,"expanded":13},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743,"expanded":13},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[762],{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"body":989,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},{"type":990,"children":991,"toc":9393},"root",[992,1000,1015,1020,1792,1799,1804,2050,2057,2062,2963,2969,2974,2980,2985,3623,3629,3634,4334,4340,4345,4351,4356,5337,5343,5348,7058,7188,7194,7199,7491,7496,8049,8055,9335,9348,9354,9359,9366,9372,9377,9387],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":766},[997],{"type":998,"value":999},"text","🔗 JSON Data",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004,1006,1013],{"type":998,"value":1005},"JSON (JavaScript Object Notation) is the standard format for data exchange between applications, APIs, and configuration systems. Python's ",{"type":993,"tag":1007,"props":1008,"children":1010},"code",{"className":1009},[],[1011],{"type":998,"value":1012},"json",{"type":998,"value":1014}," module provides powerful tools for converting between Python objects and JSON strings, enabling seamless data communication and storage.",{"type":993,"tag":1001,"props":1016,"children":1017},{},[1018],{"type":998,"value":1019},"Think of JSON as a universal language for data - it allows different systems and programming languages to share information in a structured, readable format that both humans and computers can easily understand.",{"type":993,"tag":1021,"props":1022,"children":1023},"code-try",{},[1024],{"type":993,"tag":1025,"props":1026,"children":1029},"pre",{"className":1027,"code":1028,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","import json\n\n# Convert Python data to JSON\ndata = {\n    \"name\": \"Alice Johnson\",\n    \"age\": 30,\n    \"skills\": [\"Python\", \"JavaScript\", \"SQL\"],\n    \"active\": True,\n    \"salary\": None\n}\n\njson_string = json.dumps(data)\nprint(\"JSON string:\")\nprint(json_string)\n\n# Convert JSON back to Python\njson_text = '{\"product\": \"Laptop\", \"price\": 999.99, \"available\": true}'\npython_data = json.loads(json_text)\n\nprint(\"\\nPython object:\")\nprint(python_data)\nprint(f\"Product: {python_data['product']}\")\nprint(f\"Price: ${python_data['price']}\")\n\n# Working with JSON files\nconfig = {\n    \"database\": {\n        \"host\": \"localhost\",\n        \"port\": 5432,\n        \"name\": \"myapp\"\n    },\n    \"features\": {\n        \"debug\": False,\n        \"cache_enabled\": True\n    }\n}\n\n# Save to file\nwith open(\"config.json\", \"w\") as file:\n    json.dump(config, file, indent=2)\n\nprint(\"\\nConfiguration saved to config.json\")\n",[1030],{"type":993,"tag":1007,"props":1031,"children":1032},{"__ignoreMap":8},[1033,1050,1058,1067,1085,1109,1131,1173,1194,1211,1219,1226,1243,1266,1278,1285,1293,1310,1327,1334,1364,1376,1430,1479,1486,1494,1510,1523,1544,1565,1582,1590,1602,1623,1640,1648,1655,1662,1670,1722,1757,1764],{"type":993,"tag":1034,"props":1035,"children":1037},"span",{"class":1036,"line":12},"line",[1038,1044],{"type":993,"tag":1034,"props":1039,"children":1041},{"style":1040},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1042],{"type":998,"value":1043},"import",{"type":993,"tag":1034,"props":1045,"children":1047},{"style":1046},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1048],{"type":998,"value":1049}," json\n",{"type":993,"tag":1034,"props":1051,"children":1052},{"class":1036,"line":27},[1053],{"type":993,"tag":1034,"props":1054,"children":1055},{"emptyLinePlaceholder":13},[1056],{"type":998,"value":1057},"\n",{"type":993,"tag":1034,"props":1059,"children":1060},{"class":1036,"line":36},[1061],{"type":993,"tag":1034,"props":1062,"children":1064},{"style":1063},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1065],{"type":998,"value":1066},"# Convert Python data to JSON\n",{"type":993,"tag":1034,"props":1068,"children":1069},{"class":1036,"line":45},[1070,1075,1080],{"type":993,"tag":1034,"props":1071,"children":1072},{"style":1046},[1073],{"type":998,"value":1074},"data ",{"type":993,"tag":1034,"props":1076,"children":1077},{"style":1040},[1078],{"type":998,"value":1079},"=",{"type":993,"tag":1034,"props":1081,"children":1082},{"style":1046},[1083],{"type":998,"value":1084}," {\n",{"type":993,"tag":1034,"props":1086,"children":1087},{"class":1036,"line":54},[1088,1094,1099,1104],{"type":993,"tag":1034,"props":1089,"children":1091},{"style":1090},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1092],{"type":998,"value":1093},"    \"name\"",{"type":993,"tag":1034,"props":1095,"children":1096},{"style":1046},[1097],{"type":998,"value":1098},": ",{"type":993,"tag":1034,"props":1100,"children":1101},{"style":1090},[1102],{"type":998,"value":1103},"\"Alice Johnson\"",{"type":993,"tag":1034,"props":1105,"children":1106},{"style":1046},[1107],{"type":998,"value":1108},",\n",{"type":993,"tag":1034,"props":1110,"children":1111},{"class":1036,"line":63},[1112,1117,1121,1127],{"type":993,"tag":1034,"props":1113,"children":1114},{"style":1090},[1115],{"type":998,"value":1116},"    \"age\"",{"type":993,"tag":1034,"props":1118,"children":1119},{"style":1046},[1120],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1122,"children":1124},{"style":1123},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1125],{"type":998,"value":1126},"30",{"type":993,"tag":1034,"props":1128,"children":1129},{"style":1046},[1130],{"type":998,"value":1108},{"type":993,"tag":1034,"props":1132,"children":1133},{"class":1036,"line":72},[1134,1139,1144,1149,1154,1159,1163,1168],{"type":993,"tag":1034,"props":1135,"children":1136},{"style":1090},[1137],{"type":998,"value":1138},"    \"skills\"",{"type":993,"tag":1034,"props":1140,"children":1141},{"style":1046},[1142],{"type":998,"value":1143},": [",{"type":993,"tag":1034,"props":1145,"children":1146},{"style":1090},[1147],{"type":998,"value":1148},"\"Python\"",{"type":993,"tag":1034,"props":1150,"children":1151},{"style":1046},[1152],{"type":998,"value":1153},", ",{"type":993,"tag":1034,"props":1155,"children":1156},{"style":1090},[1157],{"type":998,"value":1158},"\"JavaScript\"",{"type":993,"tag":1034,"props":1160,"children":1161},{"style":1046},[1162],{"type":998,"value":1153},{"type":993,"tag":1034,"props":1164,"children":1165},{"style":1090},[1166],{"type":998,"value":1167},"\"SQL\"",{"type":993,"tag":1034,"props":1169,"children":1170},{"style":1046},[1171],{"type":998,"value":1172},"],\n",{"type":993,"tag":1034,"props":1174,"children":1175},{"class":1036,"line":81},[1176,1181,1185,1190],{"type":993,"tag":1034,"props":1177,"children":1178},{"style":1090},[1179],{"type":998,"value":1180},"    \"active\"",{"type":993,"tag":1034,"props":1182,"children":1183},{"style":1046},[1184],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1186,"children":1187},{"style":1123},[1188],{"type":998,"value":1189},"True",{"type":993,"tag":1034,"props":1191,"children":1192},{"style":1046},[1193],{"type":998,"value":1108},{"type":993,"tag":1034,"props":1195,"children":1196},{"class":1036,"line":91},[1197,1202,1206],{"type":993,"tag":1034,"props":1198,"children":1199},{"style":1090},[1200],{"type":998,"value":1201},"    \"salary\"",{"type":993,"tag":1034,"props":1203,"children":1204},{"style":1046},[1205],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1207,"children":1208},{"style":1123},[1209],{"type":998,"value":1210},"None\n",{"type":993,"tag":1034,"props":1212,"children":1213},{"class":1036,"line":100},[1214],{"type":993,"tag":1034,"props":1215,"children":1216},{"style":1046},[1217],{"type":998,"value":1218},"}\n",{"type":993,"tag":1034,"props":1220,"children":1221},{"class":1036,"line":109},[1222],{"type":993,"tag":1034,"props":1223,"children":1224},{"emptyLinePlaceholder":13},[1225],{"type":998,"value":1057},{"type":993,"tag":1034,"props":1227,"children":1228},{"class":1036,"line":118},[1229,1234,1238],{"type":993,"tag":1034,"props":1230,"children":1231},{"style":1046},[1232],{"type":998,"value":1233},"json_string ",{"type":993,"tag":1034,"props":1235,"children":1236},{"style":1040},[1237],{"type":998,"value":1079},{"type":993,"tag":1034,"props":1239,"children":1240},{"style":1046},[1241],{"type":998,"value":1242}," json.dumps(data)\n",{"type":993,"tag":1034,"props":1244,"children":1245},{"class":1036,"line":127},[1246,1251,1256,1261],{"type":993,"tag":1034,"props":1247,"children":1248},{"style":1123},[1249],{"type":998,"value":1250},"print",{"type":993,"tag":1034,"props":1252,"children":1253},{"style":1046},[1254],{"type":998,"value":1255},"(",{"type":993,"tag":1034,"props":1257,"children":1258},{"style":1090},[1259],{"type":998,"value":1260},"\"JSON string:\"",{"type":993,"tag":1034,"props":1262,"children":1263},{"style":1046},[1264],{"type":998,"value":1265},")\n",{"type":993,"tag":1034,"props":1267,"children":1268},{"class":1036,"line":136},[1269,1273],{"type":993,"tag":1034,"props":1270,"children":1271},{"style":1123},[1272],{"type":998,"value":1250},{"type":993,"tag":1034,"props":1274,"children":1275},{"style":1046},[1276],{"type":998,"value":1277},"(json_string)\n",{"type":993,"tag":1034,"props":1279,"children":1280},{"class":1036,"line":146},[1281],{"type":993,"tag":1034,"props":1282,"children":1283},{"emptyLinePlaceholder":13},[1284],{"type":998,"value":1057},{"type":993,"tag":1034,"props":1286,"children":1287},{"class":1036,"line":155},[1288],{"type":993,"tag":1034,"props":1289,"children":1290},{"style":1063},[1291],{"type":998,"value":1292},"# Convert JSON back to Python\n",{"type":993,"tag":1034,"props":1294,"children":1295},{"class":1036,"line":164},[1296,1301,1305],{"type":993,"tag":1034,"props":1297,"children":1298},{"style":1046},[1299],{"type":998,"value":1300},"json_text ",{"type":993,"tag":1034,"props":1302,"children":1303},{"style":1040},[1304],{"type":998,"value":1079},{"type":993,"tag":1034,"props":1306,"children":1307},{"style":1090},[1308],{"type":998,"value":1309}," '{\"product\": \"Laptop\", \"price\": 999.99, \"available\": true}'\n",{"type":993,"tag":1034,"props":1311,"children":1312},{"class":1036,"line":173},[1313,1318,1322],{"type":993,"tag":1034,"props":1314,"children":1315},{"style":1046},[1316],{"type":998,"value":1317},"python_data ",{"type":993,"tag":1034,"props":1319,"children":1320},{"style":1040},[1321],{"type":998,"value":1079},{"type":993,"tag":1034,"props":1323,"children":1324},{"style":1046},[1325],{"type":998,"value":1326}," json.loads(json_text)\n",{"type":993,"tag":1034,"props":1328,"children":1329},{"class":1036,"line":182},[1330],{"type":993,"tag":1034,"props":1331,"children":1332},{"emptyLinePlaceholder":13},[1333],{"type":998,"value":1057},{"type":993,"tag":1034,"props":1335,"children":1336},{"class":1036,"line":191},[1337,1341,1345,1350,1355,1360],{"type":993,"tag":1034,"props":1338,"children":1339},{"style":1123},[1340],{"type":998,"value":1250},{"type":993,"tag":1034,"props":1342,"children":1343},{"style":1046},[1344],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1346,"children":1347},{"style":1090},[1348],{"type":998,"value":1349},"\"",{"type":993,"tag":1034,"props":1351,"children":1352},{"style":1123},[1353],{"type":998,"value":1354},"\\n",{"type":993,"tag":1034,"props":1356,"children":1357},{"style":1090},[1358],{"type":998,"value":1359},"Python object:\"",{"type":993,"tag":1034,"props":1361,"children":1362},{"style":1046},[1363],{"type":998,"value":1265},{"type":993,"tag":1034,"props":1365,"children":1366},{"class":1036,"line":201},[1367,1371],{"type":993,"tag":1034,"props":1368,"children":1369},{"style":1123},[1370],{"type":998,"value":1250},{"type":993,"tag":1034,"props":1372,"children":1373},{"style":1046},[1374],{"type":998,"value":1375},"(python_data)\n",{"type":993,"tag":1034,"props":1377,"children":1378},{"class":1036,"line":210},[1379,1383,1387,1392,1397,1402,1407,1412,1417,1422,1426],{"type":993,"tag":1034,"props":1380,"children":1381},{"style":1123},[1382],{"type":998,"value":1250},{"type":993,"tag":1034,"props":1384,"children":1385},{"style":1046},[1386],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1388,"children":1389},{"style":1040},[1390],{"type":998,"value":1391},"f",{"type":993,"tag":1034,"props":1393,"children":1394},{"style":1090},[1395],{"type":998,"value":1396},"\"Product: ",{"type":993,"tag":1034,"props":1398,"children":1399},{"style":1123},[1400],{"type":998,"value":1401},"{",{"type":993,"tag":1034,"props":1403,"children":1404},{"style":1046},[1405],{"type":998,"value":1406},"python_data[",{"type":993,"tag":1034,"props":1408,"children":1409},{"style":1090},[1410],{"type":998,"value":1411},"'product'",{"type":993,"tag":1034,"props":1413,"children":1414},{"style":1046},[1415],{"type":998,"value":1416},"]",{"type":993,"tag":1034,"props":1418,"children":1419},{"style":1123},[1420],{"type":998,"value":1421},"}",{"type":993,"tag":1034,"props":1423,"children":1424},{"style":1090},[1425],{"type":998,"value":1349},{"type":993,"tag":1034,"props":1427,"children":1428},{"style":1046},[1429],{"type":998,"value":1265},{"type":993,"tag":1034,"props":1431,"children":1432},{"class":1036,"line":219},[1433,1437,1441,1445,1450,1454,1458,1463,1467,1471,1475],{"type":993,"tag":1034,"props":1434,"children":1435},{"style":1123},[1436],{"type":998,"value":1250},{"type":993,"tag":1034,"props":1438,"children":1439},{"style":1046},[1440],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1442,"children":1443},{"style":1040},[1444],{"type":998,"value":1391},{"type":993,"tag":1034,"props":1446,"children":1447},{"style":1090},[1448],{"type":998,"value":1449},"\"Price: $",{"type":993,"tag":1034,"props":1451,"children":1452},{"style":1123},[1453],{"type":998,"value":1401},{"type":993,"tag":1034,"props":1455,"children":1456},{"style":1046},[1457],{"type":998,"value":1406},{"type":993,"tag":1034,"props":1459,"children":1460},{"style":1090},[1461],{"type":998,"value":1462},"'price'",{"type":993,"tag":1034,"props":1464,"children":1465},{"style":1046},[1466],{"type":998,"value":1416},{"type":993,"tag":1034,"props":1468,"children":1469},{"style":1123},[1470],{"type":998,"value":1421},{"type":993,"tag":1034,"props":1472,"children":1473},{"style":1090},[1474],{"type":998,"value":1349},{"type":993,"tag":1034,"props":1476,"children":1477},{"style":1046},[1478],{"type":998,"value":1265},{"type":993,"tag":1034,"props":1480,"children":1481},{"class":1036,"line":228},[1482],{"type":993,"tag":1034,"props":1483,"children":1484},{"emptyLinePlaceholder":13},[1485],{"type":998,"value":1057},{"type":993,"tag":1034,"props":1487,"children":1488},{"class":1036,"line":238},[1489],{"type":993,"tag":1034,"props":1490,"children":1491},{"style":1063},[1492],{"type":998,"value":1493},"# Working with JSON files\n",{"type":993,"tag":1034,"props":1495,"children":1496},{"class":1036,"line":247},[1497,1502,1506],{"type":993,"tag":1034,"props":1498,"children":1499},{"style":1046},[1500],{"type":998,"value":1501},"config ",{"type":993,"tag":1034,"props":1503,"children":1504},{"style":1040},[1505],{"type":998,"value":1079},{"type":993,"tag":1034,"props":1507,"children":1508},{"style":1046},[1509],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1511,"children":1512},{"class":1036,"line":256},[1513,1518],{"type":993,"tag":1034,"props":1514,"children":1515},{"style":1090},[1516],{"type":998,"value":1517},"    \"database\"",{"type":993,"tag":1034,"props":1519,"children":1520},{"style":1046},[1521],{"type":998,"value":1522},": {\n",{"type":993,"tag":1034,"props":1524,"children":1525},{"class":1036,"line":265},[1526,1531,1535,1540],{"type":993,"tag":1034,"props":1527,"children":1528},{"style":1090},[1529],{"type":998,"value":1530},"        \"host\"",{"type":993,"tag":1034,"props":1532,"children":1533},{"style":1046},[1534],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1536,"children":1537},{"style":1090},[1538],{"type":998,"value":1539},"\"localhost\"",{"type":993,"tag":1034,"props":1541,"children":1542},{"style":1046},[1543],{"type":998,"value":1108},{"type":993,"tag":1034,"props":1545,"children":1546},{"class":1036,"line":274},[1547,1552,1556,1561],{"type":993,"tag":1034,"props":1548,"children":1549},{"style":1090},[1550],{"type":998,"value":1551},"        \"port\"",{"type":993,"tag":1034,"props":1553,"children":1554},{"style":1046},[1555],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1557,"children":1558},{"style":1123},[1559],{"type":998,"value":1560},"5432",{"type":993,"tag":1034,"props":1562,"children":1563},{"style":1046},[1564],{"type":998,"value":1108},{"type":993,"tag":1034,"props":1566,"children":1567},{"class":1036,"line":284},[1568,1573,1577],{"type":993,"tag":1034,"props":1569,"children":1570},{"style":1090},[1571],{"type":998,"value":1572},"        \"name\"",{"type":993,"tag":1034,"props":1574,"children":1575},{"style":1046},[1576],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1578,"children":1579},{"style":1090},[1580],{"type":998,"value":1581},"\"myapp\"\n",{"type":993,"tag":1034,"props":1583,"children":1584},{"class":1036,"line":293},[1585],{"type":993,"tag":1034,"props":1586,"children":1587},{"style":1046},[1588],{"type":998,"value":1589},"    },\n",{"type":993,"tag":1034,"props":1591,"children":1592},{"class":1036,"line":302},[1593,1598],{"type":993,"tag":1034,"props":1594,"children":1595},{"style":1090},[1596],{"type":998,"value":1597},"    \"features\"",{"type":993,"tag":1034,"props":1599,"children":1600},{"style":1046},[1601],{"type":998,"value":1522},{"type":993,"tag":1034,"props":1603,"children":1604},{"class":1036,"line":311},[1605,1610,1614,1619],{"type":993,"tag":1034,"props":1606,"children":1607},{"style":1090},[1608],{"type":998,"value":1609},"        \"debug\"",{"type":993,"tag":1034,"props":1611,"children":1612},{"style":1046},[1613],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1615,"children":1616},{"style":1123},[1617],{"type":998,"value":1618},"False",{"type":993,"tag":1034,"props":1620,"children":1621},{"style":1046},[1622],{"type":998,"value":1108},{"type":993,"tag":1034,"props":1624,"children":1625},{"class":1036,"line":320},[1626,1631,1635],{"type":993,"tag":1034,"props":1627,"children":1628},{"style":1090},[1629],{"type":998,"value":1630},"        \"cache_enabled\"",{"type":993,"tag":1034,"props":1632,"children":1633},{"style":1046},[1634],{"type":998,"value":1098},{"type":993,"tag":1034,"props":1636,"children":1637},{"style":1123},[1638],{"type":998,"value":1639},"True\n",{"type":993,"tag":1034,"props":1641,"children":1642},{"class":1036,"line":329},[1643],{"type":993,"tag":1034,"props":1644,"children":1645},{"style":1046},[1646],{"type":998,"value":1647},"    }\n",{"type":993,"tag":1034,"props":1649,"children":1650},{"class":1036,"line":338},[1651],{"type":993,"tag":1034,"props":1652,"children":1653},{"style":1046},[1654],{"type":998,"value":1218},{"type":993,"tag":1034,"props":1656,"children":1657},{"class":1036,"line":347},[1658],{"type":993,"tag":1034,"props":1659,"children":1660},{"emptyLinePlaceholder":13},[1661],{"type":998,"value":1057},{"type":993,"tag":1034,"props":1663,"children":1664},{"class":1036,"line":356},[1665],{"type":993,"tag":1034,"props":1666,"children":1667},{"style":1063},[1668],{"type":998,"value":1669},"# Save to file\n",{"type":993,"tag":1034,"props":1671,"children":1672},{"class":1036,"line":365},[1673,1678,1683,1687,1692,1696,1701,1706,1711,1717],{"type":993,"tag":1034,"props":1674,"children":1675},{"style":1040},[1676],{"type":998,"value":1677},"with",{"type":993,"tag":1034,"props":1679,"children":1680},{"style":1123},[1681],{"type":998,"value":1682}," open",{"type":993,"tag":1034,"props":1684,"children":1685},{"style":1046},[1686],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1688,"children":1689},{"style":1090},[1690],{"type":998,"value":1691},"\"config.json\"",{"type":993,"tag":1034,"props":1693,"children":1694},{"style":1046},[1695],{"type":998,"value":1153},{"type":993,"tag":1034,"props":1697,"children":1698},{"style":1090},[1699],{"type":998,"value":1700},"\"w\"",{"type":993,"tag":1034,"props":1702,"children":1703},{"style":1046},[1704],{"type":998,"value":1705},") ",{"type":993,"tag":1034,"props":1707,"children":1708},{"style":1040},[1709],{"type":998,"value":1710},"as",{"type":993,"tag":1034,"props":1712,"children":1714},{"style":1713},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1715],{"type":998,"value":1716}," file",{"type":993,"tag":1034,"props":1718,"children":1719},{"style":1046},[1720],{"type":998,"value":1721},":\n",{"type":993,"tag":1034,"props":1723,"children":1724},{"class":1036,"line":374},[1725,1730,1735,1739,1744,1748,1753],{"type":993,"tag":1034,"props":1726,"children":1727},{"style":1046},[1728],{"type":998,"value":1729},"    json.dump(config, ",{"type":993,"tag":1034,"props":1731,"children":1732},{"style":1713},[1733],{"type":998,"value":1734},"file",{"type":993,"tag":1034,"props":1736,"children":1737},{"style":1046},[1738],{"type":998,"value":1153},{"type":993,"tag":1034,"props":1740,"children":1741},{"style":1713},[1742],{"type":998,"value":1743},"indent",{"type":993,"tag":1034,"props":1745,"children":1746},{"style":1040},[1747],{"type":998,"value":1079},{"type":993,"tag":1034,"props":1749,"children":1750},{"style":1123},[1751],{"type":998,"value":1752},"2",{"type":993,"tag":1034,"props":1754,"children":1755},{"style":1046},[1756],{"type":998,"value":1265},{"type":993,"tag":1034,"props":1758,"children":1759},{"class":1036,"line":384},[1760],{"type":993,"tag":1034,"props":1761,"children":1762},{"emptyLinePlaceholder":13},[1763],{"type":998,"value":1057},{"type":993,"tag":1034,"props":1765,"children":1766},{"class":1036,"line":393},[1767,1771,1775,1779,1783,1788],{"type":993,"tag":1034,"props":1768,"children":1769},{"style":1123},[1770],{"type":998,"value":1250},{"type":993,"tag":1034,"props":1772,"children":1773},{"style":1046},[1774],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1776,"children":1777},{"style":1090},[1778],{"type":998,"value":1349},{"type":993,"tag":1034,"props":1780,"children":1781},{"style":1123},[1782],{"type":998,"value":1354},{"type":993,"tag":1034,"props":1784,"children":1785},{"style":1090},[1786],{"type":998,"value":1787},"Configuration saved to config.json\"",{"type":993,"tag":1034,"props":1789,"children":1790},{"style":1046},[1791],{"type":998,"value":1265},{"type":993,"tag":1793,"props":1794,"children":1796},"h2",{"id":1795},"understanding-json-format",[1797],{"type":998,"value":1798},"🎯 Understanding JSON Format",{"type":993,"tag":1001,"props":1800,"children":1801},{},[1802],{"type":998,"value":1803},"JSON provides a standardized way to represent structured data using simple syntax rules that ensure compatibility across different systems.",{"type":993,"tag":1805,"props":1806,"children":1810},"info-box",{"emoji":1807,"title":1808,"type":1809},"📋","JSON Data Types and Python Equivalents","info",[1811,1820,1916,1924,1968,1976,1999,2007],{"type":993,"tag":1001,"props":1812,"children":1813},{},[1814],{"type":993,"tag":1815,"props":1816,"children":1817},"strong",{},[1818],{"type":998,"value":1819},"Supported Data Types:",{"type":993,"tag":1821,"props":1822,"children":1823},"ul",{},[1824,1841,1857,1873,1896,1906],{"type":993,"tag":1825,"props":1826,"children":1827},"li",{},[1828,1833,1835],{"type":993,"tag":1815,"props":1829,"children":1830},{},[1831],{"type":998,"value":1832},"Objects",{"type":998,"value":1834},": Python dictionaries → JSON objects ",{"type":993,"tag":1007,"props":1836,"children":1838},{"className":1837},[],[1839],{"type":998,"value":1840},"{}",{"type":993,"tag":1825,"props":1842,"children":1843},{},[1844,1849,1851],{"type":993,"tag":1815,"props":1845,"children":1846},{},[1847],{"type":998,"value":1848},"Arrays",{"type":998,"value":1850},": Python lists → JSON arrays ",{"type":993,"tag":1007,"props":1852,"children":1854},{"className":1853},[],[1855],{"type":998,"value":1856},"[]",{"type":993,"tag":1825,"props":1858,"children":1859},{},[1860,1865,1867],{"type":993,"tag":1815,"props":1861,"children":1862},{},[1863],{"type":998,"value":1864},"Strings",{"type":998,"value":1866},": Python strings → JSON strings ",{"type":993,"tag":1007,"props":1868,"children":1870},{"className":1869},[],[1871],{"type":998,"value":1872},"\"text\"",{"type":993,"tag":1825,"props":1874,"children":1875},{},[1876,1881,1883,1889,1890],{"type":993,"tag":1815,"props":1877,"children":1878},{},[1879],{"type":998,"value":1880},"Numbers",{"type":998,"value":1882},": Python int/float → JSON numbers ",{"type":993,"tag":1007,"props":1884,"children":1886},{"className":1885},[],[1887],{"type":998,"value":1888},"42",{"type":998,"value":1153},{"type":993,"tag":1007,"props":1891,"children":1893},{"className":1892},[],[1894],{"type":998,"value":1895},"3.14",{"type":993,"tag":1825,"props":1897,"children":1898},{},[1899,1904],{"type":993,"tag":1815,"props":1900,"children":1901},{},[1902],{"type":998,"value":1903},"Booleans",{"type":998,"value":1905},": Python True/False → JSON true/false",{"type":993,"tag":1825,"props":1907,"children":1908},{},[1909,1914],{"type":993,"tag":1815,"props":1910,"children":1911},{},[1912],{"type":998,"value":1913},"Null",{"type":998,"value":1915},": Python None → JSON null",{"type":993,"tag":1001,"props":1917,"children":1918},{},[1919],{"type":993,"tag":1815,"props":1920,"children":1921},{},[1922],{"type":998,"value":1923},"JSON Syntax Rules:",{"type":993,"tag":1821,"props":1925,"children":1926},{},[1927,1932,1937,1947,1957],{"type":993,"tag":1825,"props":1928,"children":1929},{},[1930],{"type":998,"value":1931},"Data is stored in name/value pairs",{"type":993,"tag":1825,"props":1933,"children":1934},{},[1935],{"type":998,"value":1936},"Data is separated by commas",{"type":993,"tag":1825,"props":1938,"children":1939},{},[1940,1942],{"type":998,"value":1941},"Objects are enclosed in curly braces ",{"type":993,"tag":1007,"props":1943,"children":1945},{"className":1944},[],[1946],{"type":998,"value":1840},{"type":993,"tag":1825,"props":1948,"children":1949},{},[1950,1952],{"type":998,"value":1951},"Arrays are enclosed in square brackets ",{"type":993,"tag":1007,"props":1953,"children":1955},{"className":1954},[],[1956],{"type":998,"value":1856},{"type":993,"tag":1825,"props":1958,"children":1959},{},[1960,1962],{"type":998,"value":1961},"Strings must use double quotes ",{"type":993,"tag":1007,"props":1963,"children":1965},{"className":1964},[],[1966],{"type":998,"value":1967},"\"\"",{"type":993,"tag":1001,"props":1969,"children":1970},{},[1971],{"type":993,"tag":1815,"props":1972,"children":1973},{},[1974],{"type":998,"value":1975},"Key Limitations:",{"type":993,"tag":1821,"props":1977,"children":1978},{},[1979,1984,1989,1994],{"type":993,"tag":1825,"props":1980,"children":1981},{},[1982],{"type":998,"value":1983},"No comments allowed in JSON",{"type":993,"tag":1825,"props":1985,"children":1986},{},[1987],{"type":998,"value":1988},"No trailing commas permitted",{"type":993,"tag":1825,"props":1990,"children":1991},{},[1992],{"type":998,"value":1993},"Keys must be strings",{"type":993,"tag":1825,"props":1995,"children":1996},{},[1997],{"type":998,"value":1998},"No Python-specific types (datetime, sets, etc.)",{"type":993,"tag":1001,"props":2000,"children":2001},{},[2002],{"type":993,"tag":1815,"props":2003,"children":2004},{},[2005],{"type":998,"value":2006},"Common Use Cases:",{"type":993,"tag":1821,"props":2008,"children":2009},{},[2010,2020,2030,2040],{"type":993,"tag":1825,"props":2011,"children":2012},{},[2013,2018],{"type":993,"tag":1815,"props":2014,"children":2015},{},[2016],{"type":998,"value":2017},"API Communication",{"type":998,"value":2019},": REST API requests and responses",{"type":993,"tag":1825,"props":2021,"children":2022},{},[2023,2028],{"type":993,"tag":1815,"props":2024,"children":2025},{},[2026],{"type":998,"value":2027},"Configuration Files",{"type":998,"value":2029},": Application settings and preferences",{"type":993,"tag":1825,"props":2031,"children":2032},{},[2033,2038],{"type":993,"tag":1815,"props":2034,"children":2035},{},[2036],{"type":998,"value":2037},"Data Storage",{"type":998,"value":2039},": Lightweight database alternative",{"type":993,"tag":1825,"props":2041,"children":2042},{},[2043,2048],{"type":993,"tag":1815,"props":2044,"children":2045},{},[2046],{"type":998,"value":2047},"Data Exchange",{"type":998,"value":2049},": Inter-service communication",{"type":993,"tag":2051,"props":2052,"children":2054},"h3",{"id":2053},"data-type-conversion",[2055],{"type":998,"value":2056},"Data Type Conversion",{"type":993,"tag":1001,"props":2058,"children":2059},{},[2060],{"type":998,"value":2061},"Understanding the mapping between Python objects and JSON format helps prevent data conversion errors and ensures compatibility.",{"type":993,"tag":1021,"props":2063,"children":2064},{},[2065],{"type":993,"tag":1025,"props":2066,"children":2068},{"className":1027,"code":2067,"language":6,"meta":8,"style":8},"import json\nimport datetime\n\n# Demonstrate JSON data type conversions\npython_data = {\n    \"string\": \"Hello World\",\n    \"integer\": 42,\n    \"float\": 3.14159,\n    \"boolean_true\": True,\n    \"boolean_false\": False,\n    \"null_value\": None,\n    \"list\": [1, 2, 3, \"four\"],\n    \"nested_object\": {\n        \"inner_key\": \"inner_value\",\n        \"numbers\": [10, 20, 30]\n    }\n}\n\n# Convert to JSON and back\njson_string = json.dumps(python_data, indent=2)\nprint(\"JSON representation:\")\nprint(json_string)\n\n# Parse back to Python\nparsed_data = json.loads(json_string)\nprint(f\"\\nOriginal type: {type(python_data)}\")\nprint(f\"Parsed type: {type(parsed_data)}\")\nprint(f\"Data preserved: {python_data == parsed_data}\")\n\n# Handling unsupported types\nproblematic_data = {\n    \"date\": datetime.date.today(),\n    \"set\": {1, 2, 3},\n    \"tuple\": (1, 2, 3)\n}\n\n# Solution: Convert unsupported types\nsafe_data = {\n    \"date\": str(problematic_data[\"date\"]),\n    \"set\": list(problematic_data[\"set\"]),\n    \"tuple\": list(problematic_data[\"tuple\"])\n}\n\njson_string = json.dumps(safe_data, indent=2)\nprint(\"\\nConverted data:\")\nprint(json_string)\n",[2069],{"type":993,"tag":1007,"props":2070,"children":2071},{"__ignoreMap":8},[2072,2083,2095,2102,2110,2125,2146,2166,2187,2207,2227,2248,2295,2307,2328,2367,2374,2381,2388,2396,2428,2448,2459,2466,2474,2491,2541,2582,2632,2639,2647,2663,2676,2714,2751,2758,2765,2773,2789,2820,2849,2878,2885,2892,2924,2952],{"type":993,"tag":1034,"props":2073,"children":2074},{"class":1036,"line":12},[2075,2079],{"type":993,"tag":1034,"props":2076,"children":2077},{"style":1040},[2078],{"type":998,"value":1043},{"type":993,"tag":1034,"props":2080,"children":2081},{"style":1046},[2082],{"type":998,"value":1049},{"type":993,"tag":1034,"props":2084,"children":2085},{"class":1036,"line":27},[2086,2090],{"type":993,"tag":1034,"props":2087,"children":2088},{"style":1040},[2089],{"type":998,"value":1043},{"type":993,"tag":1034,"props":2091,"children":2092},{"style":1046},[2093],{"type":998,"value":2094}," datetime\n",{"type":993,"tag":1034,"props":2096,"children":2097},{"class":1036,"line":36},[2098],{"type":993,"tag":1034,"props":2099,"children":2100},{"emptyLinePlaceholder":13},[2101],{"type":998,"value":1057},{"type":993,"tag":1034,"props":2103,"children":2104},{"class":1036,"line":45},[2105],{"type":993,"tag":1034,"props":2106,"children":2107},{"style":1063},[2108],{"type":998,"value":2109},"# Demonstrate JSON data type conversions\n",{"type":993,"tag":1034,"props":2111,"children":2112},{"class":1036,"line":54},[2113,2117,2121],{"type":993,"tag":1034,"props":2114,"children":2115},{"style":1046},[2116],{"type":998,"value":1317},{"type":993,"tag":1034,"props":2118,"children":2119},{"style":1040},[2120],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2122,"children":2123},{"style":1046},[2124],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2126,"children":2127},{"class":1036,"line":63},[2128,2133,2137,2142],{"type":993,"tag":1034,"props":2129,"children":2130},{"style":1090},[2131],{"type":998,"value":2132},"    \"string\"",{"type":993,"tag":1034,"props":2134,"children":2135},{"style":1046},[2136],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2138,"children":2139},{"style":1090},[2140],{"type":998,"value":2141},"\"Hello World\"",{"type":993,"tag":1034,"props":2143,"children":2144},{"style":1046},[2145],{"type":998,"value":1108},{"type":993,"tag":1034,"props":2147,"children":2148},{"class":1036,"line":72},[2149,2154,2158,2162],{"type":993,"tag":1034,"props":2150,"children":2151},{"style":1090},[2152],{"type":998,"value":2153},"    \"integer\"",{"type":993,"tag":1034,"props":2155,"children":2156},{"style":1046},[2157],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2159,"children":2160},{"style":1123},[2161],{"type":998,"value":1888},{"type":993,"tag":1034,"props":2163,"children":2164},{"style":1046},[2165],{"type":998,"value":1108},{"type":993,"tag":1034,"props":2167,"children":2168},{"class":1036,"line":81},[2169,2174,2178,2183],{"type":993,"tag":1034,"props":2170,"children":2171},{"style":1090},[2172],{"type":998,"value":2173},"    \"float\"",{"type":993,"tag":1034,"props":2175,"children":2176},{"style":1046},[2177],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2179,"children":2180},{"style":1123},[2181],{"type":998,"value":2182},"3.14159",{"type":993,"tag":1034,"props":2184,"children":2185},{"style":1046},[2186],{"type":998,"value":1108},{"type":993,"tag":1034,"props":2188,"children":2189},{"class":1036,"line":91},[2190,2195,2199,2203],{"type":993,"tag":1034,"props":2191,"children":2192},{"style":1090},[2193],{"type":998,"value":2194},"    \"boolean_true\"",{"type":993,"tag":1034,"props":2196,"children":2197},{"style":1046},[2198],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2200,"children":2201},{"style":1123},[2202],{"type":998,"value":1189},{"type":993,"tag":1034,"props":2204,"children":2205},{"style":1046},[2206],{"type":998,"value":1108},{"type":993,"tag":1034,"props":2208,"children":2209},{"class":1036,"line":100},[2210,2215,2219,2223],{"type":993,"tag":1034,"props":2211,"children":2212},{"style":1090},[2213],{"type":998,"value":2214},"    \"boolean_false\"",{"type":993,"tag":1034,"props":2216,"children":2217},{"style":1046},[2218],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2220,"children":2221},{"style":1123},[2222],{"type":998,"value":1618},{"type":993,"tag":1034,"props":2224,"children":2225},{"style":1046},[2226],{"type":998,"value":1108},{"type":993,"tag":1034,"props":2228,"children":2229},{"class":1036,"line":109},[2230,2235,2239,2244],{"type":993,"tag":1034,"props":2231,"children":2232},{"style":1090},[2233],{"type":998,"value":2234},"    \"null_value\"",{"type":993,"tag":1034,"props":2236,"children":2237},{"style":1046},[2238],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2240,"children":2241},{"style":1123},[2242],{"type":998,"value":2243},"None",{"type":993,"tag":1034,"props":2245,"children":2246},{"style":1046},[2247],{"type":998,"value":1108},{"type":993,"tag":1034,"props":2249,"children":2250},{"class":1036,"line":118},[2251,2256,2260,2265,2269,2273,2277,2282,2286,2291],{"type":993,"tag":1034,"props":2252,"children":2253},{"style":1090},[2254],{"type":998,"value":2255},"    \"list\"",{"type":993,"tag":1034,"props":2257,"children":2258},{"style":1046},[2259],{"type":998,"value":1143},{"type":993,"tag":1034,"props":2261,"children":2262},{"style":1123},[2263],{"type":998,"value":2264},"1",{"type":993,"tag":1034,"props":2266,"children":2267},{"style":1046},[2268],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2270,"children":2271},{"style":1123},[2272],{"type":998,"value":1752},{"type":993,"tag":1034,"props":2274,"children":2275},{"style":1046},[2276],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2278,"children":2279},{"style":1123},[2280],{"type":998,"value":2281},"3",{"type":993,"tag":1034,"props":2283,"children":2284},{"style":1046},[2285],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2287,"children":2288},{"style":1090},[2289],{"type":998,"value":2290},"\"four\"",{"type":993,"tag":1034,"props":2292,"children":2293},{"style":1046},[2294],{"type":998,"value":1172},{"type":993,"tag":1034,"props":2296,"children":2297},{"class":1036,"line":127},[2298,2303],{"type":993,"tag":1034,"props":2299,"children":2300},{"style":1090},[2301],{"type":998,"value":2302},"    \"nested_object\"",{"type":993,"tag":1034,"props":2304,"children":2305},{"style":1046},[2306],{"type":998,"value":1522},{"type":993,"tag":1034,"props":2308,"children":2309},{"class":1036,"line":136},[2310,2315,2319,2324],{"type":993,"tag":1034,"props":2311,"children":2312},{"style":1090},[2313],{"type":998,"value":2314},"        \"inner_key\"",{"type":993,"tag":1034,"props":2316,"children":2317},{"style":1046},[2318],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2320,"children":2321},{"style":1090},[2322],{"type":998,"value":2323},"\"inner_value\"",{"type":993,"tag":1034,"props":2325,"children":2326},{"style":1046},[2327],{"type":998,"value":1108},{"type":993,"tag":1034,"props":2329,"children":2330},{"class":1036,"line":146},[2331,2336,2340,2345,2349,2354,2358,2362],{"type":993,"tag":1034,"props":2332,"children":2333},{"style":1090},[2334],{"type":998,"value":2335},"        \"numbers\"",{"type":993,"tag":1034,"props":2337,"children":2338},{"style":1046},[2339],{"type":998,"value":1143},{"type":993,"tag":1034,"props":2341,"children":2342},{"style":1123},[2343],{"type":998,"value":2344},"10",{"type":993,"tag":1034,"props":2346,"children":2347},{"style":1046},[2348],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2350,"children":2351},{"style":1123},[2352],{"type":998,"value":2353},"20",{"type":993,"tag":1034,"props":2355,"children":2356},{"style":1046},[2357],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2359,"children":2360},{"style":1123},[2361],{"type":998,"value":1126},{"type":993,"tag":1034,"props":2363,"children":2364},{"style":1046},[2365],{"type":998,"value":2366},"]\n",{"type":993,"tag":1034,"props":2368,"children":2369},{"class":1036,"line":155},[2370],{"type":993,"tag":1034,"props":2371,"children":2372},{"style":1046},[2373],{"type":998,"value":1647},{"type":993,"tag":1034,"props":2375,"children":2376},{"class":1036,"line":164},[2377],{"type":993,"tag":1034,"props":2378,"children":2379},{"style":1046},[2380],{"type":998,"value":1218},{"type":993,"tag":1034,"props":2382,"children":2383},{"class":1036,"line":173},[2384],{"type":993,"tag":1034,"props":2385,"children":2386},{"emptyLinePlaceholder":13},[2387],{"type":998,"value":1057},{"type":993,"tag":1034,"props":2389,"children":2390},{"class":1036,"line":182},[2391],{"type":993,"tag":1034,"props":2392,"children":2393},{"style":1063},[2394],{"type":998,"value":2395},"# Convert to JSON and back\n",{"type":993,"tag":1034,"props":2397,"children":2398},{"class":1036,"line":191},[2399,2403,2407,2412,2416,2420,2424],{"type":993,"tag":1034,"props":2400,"children":2401},{"style":1046},[2402],{"type":998,"value":1233},{"type":993,"tag":1034,"props":2404,"children":2405},{"style":1040},[2406],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2408,"children":2409},{"style":1046},[2410],{"type":998,"value":2411}," json.dumps(python_data, ",{"type":993,"tag":1034,"props":2413,"children":2414},{"style":1713},[2415],{"type":998,"value":1743},{"type":993,"tag":1034,"props":2417,"children":2418},{"style":1040},[2419],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2421,"children":2422},{"style":1123},[2423],{"type":998,"value":1752},{"type":993,"tag":1034,"props":2425,"children":2426},{"style":1046},[2427],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2429,"children":2430},{"class":1036,"line":201},[2431,2435,2439,2444],{"type":993,"tag":1034,"props":2432,"children":2433},{"style":1123},[2434],{"type":998,"value":1250},{"type":993,"tag":1034,"props":2436,"children":2437},{"style":1046},[2438],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2440,"children":2441},{"style":1090},[2442],{"type":998,"value":2443},"\"JSON representation:\"",{"type":993,"tag":1034,"props":2445,"children":2446},{"style":1046},[2447],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2449,"children":2450},{"class":1036,"line":210},[2451,2455],{"type":993,"tag":1034,"props":2452,"children":2453},{"style":1123},[2454],{"type":998,"value":1250},{"type":993,"tag":1034,"props":2456,"children":2457},{"style":1046},[2458],{"type":998,"value":1277},{"type":993,"tag":1034,"props":2460,"children":2461},{"class":1036,"line":219},[2462],{"type":993,"tag":1034,"props":2463,"children":2464},{"emptyLinePlaceholder":13},[2465],{"type":998,"value":1057},{"type":993,"tag":1034,"props":2467,"children":2468},{"class":1036,"line":228},[2469],{"type":993,"tag":1034,"props":2470,"children":2471},{"style":1063},[2472],{"type":998,"value":2473},"# Parse back to Python\n",{"type":993,"tag":1034,"props":2475,"children":2476},{"class":1036,"line":238},[2477,2482,2486],{"type":993,"tag":1034,"props":2478,"children":2479},{"style":1046},[2480],{"type":998,"value":2481},"parsed_data ",{"type":993,"tag":1034,"props":2483,"children":2484},{"style":1040},[2485],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2487,"children":2488},{"style":1046},[2489],{"type":998,"value":2490}," json.loads(json_string)\n",{"type":993,"tag":1034,"props":2492,"children":2493},{"class":1036,"line":247},[2494,2498,2502,2506,2510,2514,2519,2524,2529,2533,2537],{"type":993,"tag":1034,"props":2495,"children":2496},{"style":1123},[2497],{"type":998,"value":1250},{"type":993,"tag":1034,"props":2499,"children":2500},{"style":1046},[2501],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2503,"children":2504},{"style":1040},[2505],{"type":998,"value":1391},{"type":993,"tag":1034,"props":2507,"children":2508},{"style":1090},[2509],{"type":998,"value":1349},{"type":993,"tag":1034,"props":2511,"children":2512},{"style":1123},[2513],{"type":998,"value":1354},{"type":993,"tag":1034,"props":2515,"children":2516},{"style":1090},[2517],{"type":998,"value":2518},"Original type: ",{"type":993,"tag":1034,"props":2520,"children":2521},{"style":1123},[2522],{"type":998,"value":2523},"{type",{"type":993,"tag":1034,"props":2525,"children":2526},{"style":1046},[2527],{"type":998,"value":2528},"(python_data)",{"type":993,"tag":1034,"props":2530,"children":2531},{"style":1123},[2532],{"type":998,"value":1421},{"type":993,"tag":1034,"props":2534,"children":2535},{"style":1090},[2536],{"type":998,"value":1349},{"type":993,"tag":1034,"props":2538,"children":2539},{"style":1046},[2540],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2542,"children":2543},{"class":1036,"line":256},[2544,2548,2552,2556,2561,2565,2570,2574,2578],{"type":993,"tag":1034,"props":2545,"children":2546},{"style":1123},[2547],{"type":998,"value":1250},{"type":993,"tag":1034,"props":2549,"children":2550},{"style":1046},[2551],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2553,"children":2554},{"style":1040},[2555],{"type":998,"value":1391},{"type":993,"tag":1034,"props":2557,"children":2558},{"style":1090},[2559],{"type":998,"value":2560},"\"Parsed type: ",{"type":993,"tag":1034,"props":2562,"children":2563},{"style":1123},[2564],{"type":998,"value":2523},{"type":993,"tag":1034,"props":2566,"children":2567},{"style":1046},[2568],{"type":998,"value":2569},"(parsed_data)",{"type":993,"tag":1034,"props":2571,"children":2572},{"style":1123},[2573],{"type":998,"value":1421},{"type":993,"tag":1034,"props":2575,"children":2576},{"style":1090},[2577],{"type":998,"value":1349},{"type":993,"tag":1034,"props":2579,"children":2580},{"style":1046},[2581],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2583,"children":2584},{"class":1036,"line":265},[2585,2589,2593,2597,2602,2606,2610,2615,2620,2624,2628],{"type":993,"tag":1034,"props":2586,"children":2587},{"style":1123},[2588],{"type":998,"value":1250},{"type":993,"tag":1034,"props":2590,"children":2591},{"style":1046},[2592],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2594,"children":2595},{"style":1040},[2596],{"type":998,"value":1391},{"type":993,"tag":1034,"props":2598,"children":2599},{"style":1090},[2600],{"type":998,"value":2601},"\"Data preserved: ",{"type":993,"tag":1034,"props":2603,"children":2604},{"style":1123},[2605],{"type":998,"value":1401},{"type":993,"tag":1034,"props":2607,"children":2608},{"style":1046},[2609],{"type":998,"value":1317},{"type":993,"tag":1034,"props":2611,"children":2612},{"style":1040},[2613],{"type":998,"value":2614},"==",{"type":993,"tag":1034,"props":2616,"children":2617},{"style":1046},[2618],{"type":998,"value":2619}," parsed_data",{"type":993,"tag":1034,"props":2621,"children":2622},{"style":1123},[2623],{"type":998,"value":1421},{"type":993,"tag":1034,"props":2625,"children":2626},{"style":1090},[2627],{"type":998,"value":1349},{"type":993,"tag":1034,"props":2629,"children":2630},{"style":1046},[2631],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2633,"children":2634},{"class":1036,"line":274},[2635],{"type":993,"tag":1034,"props":2636,"children":2637},{"emptyLinePlaceholder":13},[2638],{"type":998,"value":1057},{"type":993,"tag":1034,"props":2640,"children":2641},{"class":1036,"line":284},[2642],{"type":993,"tag":1034,"props":2643,"children":2644},{"style":1063},[2645],{"type":998,"value":2646},"# Handling unsupported types\n",{"type":993,"tag":1034,"props":2648,"children":2649},{"class":1036,"line":293},[2650,2655,2659],{"type":993,"tag":1034,"props":2651,"children":2652},{"style":1046},[2653],{"type":998,"value":2654},"problematic_data ",{"type":993,"tag":1034,"props":2656,"children":2657},{"style":1040},[2658],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2660,"children":2661},{"style":1046},[2662],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2664,"children":2665},{"class":1036,"line":302},[2666,2671],{"type":993,"tag":1034,"props":2667,"children":2668},{"style":1090},[2669],{"type":998,"value":2670},"    \"date\"",{"type":993,"tag":1034,"props":2672,"children":2673},{"style":1046},[2674],{"type":998,"value":2675},": datetime.date.today(),\n",{"type":993,"tag":1034,"props":2677,"children":2678},{"class":1036,"line":311},[2679,2684,2689,2693,2697,2701,2705,2709],{"type":993,"tag":1034,"props":2680,"children":2681},{"style":1090},[2682],{"type":998,"value":2683},"    \"set\"",{"type":993,"tag":1034,"props":2685,"children":2686},{"style":1046},[2687],{"type":998,"value":2688},": {",{"type":993,"tag":1034,"props":2690,"children":2691},{"style":1123},[2692],{"type":998,"value":2264},{"type":993,"tag":1034,"props":2694,"children":2695},{"style":1046},[2696],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2698,"children":2699},{"style":1123},[2700],{"type":998,"value":1752},{"type":993,"tag":1034,"props":2702,"children":2703},{"style":1046},[2704],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2706,"children":2707},{"style":1123},[2708],{"type":998,"value":2281},{"type":993,"tag":1034,"props":2710,"children":2711},{"style":1046},[2712],{"type":998,"value":2713},"},\n",{"type":993,"tag":1034,"props":2715,"children":2716},{"class":1036,"line":320},[2717,2722,2727,2731,2735,2739,2743,2747],{"type":993,"tag":1034,"props":2718,"children":2719},{"style":1090},[2720],{"type":998,"value":2721},"    \"tuple\"",{"type":993,"tag":1034,"props":2723,"children":2724},{"style":1046},[2725],{"type":998,"value":2726},": (",{"type":993,"tag":1034,"props":2728,"children":2729},{"style":1123},[2730],{"type":998,"value":2264},{"type":993,"tag":1034,"props":2732,"children":2733},{"style":1046},[2734],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2736,"children":2737},{"style":1123},[2738],{"type":998,"value":1752},{"type":993,"tag":1034,"props":2740,"children":2741},{"style":1046},[2742],{"type":998,"value":1153},{"type":993,"tag":1034,"props":2744,"children":2745},{"style":1123},[2746],{"type":998,"value":2281},{"type":993,"tag":1034,"props":2748,"children":2749},{"style":1046},[2750],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2752,"children":2753},{"class":1036,"line":329},[2754],{"type":993,"tag":1034,"props":2755,"children":2756},{"style":1046},[2757],{"type":998,"value":1218},{"type":993,"tag":1034,"props":2759,"children":2760},{"class":1036,"line":338},[2761],{"type":993,"tag":1034,"props":2762,"children":2763},{"emptyLinePlaceholder":13},[2764],{"type":998,"value":1057},{"type":993,"tag":1034,"props":2766,"children":2767},{"class":1036,"line":347},[2768],{"type":993,"tag":1034,"props":2769,"children":2770},{"style":1063},[2771],{"type":998,"value":2772},"# Solution: Convert unsupported types\n",{"type":993,"tag":1034,"props":2774,"children":2775},{"class":1036,"line":356},[2776,2781,2785],{"type":993,"tag":1034,"props":2777,"children":2778},{"style":1046},[2779],{"type":998,"value":2780},"safe_data ",{"type":993,"tag":1034,"props":2782,"children":2783},{"style":1040},[2784],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2786,"children":2787},{"style":1046},[2788],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2790,"children":2791},{"class":1036,"line":365},[2792,2796,2800,2805,2810,2815],{"type":993,"tag":1034,"props":2793,"children":2794},{"style":1090},[2795],{"type":998,"value":2670},{"type":993,"tag":1034,"props":2797,"children":2798},{"style":1046},[2799],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2801,"children":2802},{"style":1123},[2803],{"type":998,"value":2804},"str",{"type":993,"tag":1034,"props":2806,"children":2807},{"style":1046},[2808],{"type":998,"value":2809},"(problematic_data[",{"type":993,"tag":1034,"props":2811,"children":2812},{"style":1090},[2813],{"type":998,"value":2814},"\"date\"",{"type":993,"tag":1034,"props":2816,"children":2817},{"style":1046},[2818],{"type":998,"value":2819},"]),\n",{"type":993,"tag":1034,"props":2821,"children":2822},{"class":1036,"line":374},[2823,2827,2831,2836,2840,2845],{"type":993,"tag":1034,"props":2824,"children":2825},{"style":1090},[2826],{"type":998,"value":2683},{"type":993,"tag":1034,"props":2828,"children":2829},{"style":1046},[2830],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2832,"children":2833},{"style":1123},[2834],{"type":998,"value":2835},"list",{"type":993,"tag":1034,"props":2837,"children":2838},{"style":1046},[2839],{"type":998,"value":2809},{"type":993,"tag":1034,"props":2841,"children":2842},{"style":1090},[2843],{"type":998,"value":2844},"\"set\"",{"type":993,"tag":1034,"props":2846,"children":2847},{"style":1046},[2848],{"type":998,"value":2819},{"type":993,"tag":1034,"props":2850,"children":2851},{"class":1036,"line":384},[2852,2856,2860,2864,2868,2873],{"type":993,"tag":1034,"props":2853,"children":2854},{"style":1090},[2855],{"type":998,"value":2721},{"type":993,"tag":1034,"props":2857,"children":2858},{"style":1046},[2859],{"type":998,"value":1098},{"type":993,"tag":1034,"props":2861,"children":2862},{"style":1123},[2863],{"type":998,"value":2835},{"type":993,"tag":1034,"props":2865,"children":2866},{"style":1046},[2867],{"type":998,"value":2809},{"type":993,"tag":1034,"props":2869,"children":2870},{"style":1090},[2871],{"type":998,"value":2872},"\"tuple\"",{"type":993,"tag":1034,"props":2874,"children":2875},{"style":1046},[2876],{"type":998,"value":2877},"])\n",{"type":993,"tag":1034,"props":2879,"children":2880},{"class":1036,"line":393},[2881],{"type":993,"tag":1034,"props":2882,"children":2883},{"style":1046},[2884],{"type":998,"value":1218},{"type":993,"tag":1034,"props":2886,"children":2887},{"class":1036,"line":402},[2888],{"type":993,"tag":1034,"props":2889,"children":2890},{"emptyLinePlaceholder":13},[2891],{"type":998,"value":1057},{"type":993,"tag":1034,"props":2893,"children":2894},{"class":1036,"line":411},[2895,2899,2903,2908,2912,2916,2920],{"type":993,"tag":1034,"props":2896,"children":2897},{"style":1046},[2898],{"type":998,"value":1233},{"type":993,"tag":1034,"props":2900,"children":2901},{"style":1040},[2902],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2904,"children":2905},{"style":1046},[2906],{"type":998,"value":2907}," json.dumps(safe_data, ",{"type":993,"tag":1034,"props":2909,"children":2910},{"style":1713},[2911],{"type":998,"value":1743},{"type":993,"tag":1034,"props":2913,"children":2914},{"style":1040},[2915],{"type":998,"value":1079},{"type":993,"tag":1034,"props":2917,"children":2918},{"style":1123},[2919],{"type":998,"value":1752},{"type":993,"tag":1034,"props":2921,"children":2922},{"style":1046},[2923],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2925,"children":2926},{"class":1036,"line":420},[2927,2931,2935,2939,2943,2948],{"type":993,"tag":1034,"props":2928,"children":2929},{"style":1123},[2930],{"type":998,"value":1250},{"type":993,"tag":1034,"props":2932,"children":2933},{"style":1046},[2934],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2936,"children":2937},{"style":1090},[2938],{"type":998,"value":1349},{"type":993,"tag":1034,"props":2940,"children":2941},{"style":1123},[2942],{"type":998,"value":1354},{"type":993,"tag":1034,"props":2944,"children":2945},{"style":1090},[2946],{"type":998,"value":2947},"Converted data:\"",{"type":993,"tag":1034,"props":2949,"children":2950},{"style":1046},[2951],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2953,"children":2954},{"class":1036,"line":429},[2955,2959],{"type":993,"tag":1034,"props":2956,"children":2957},{"style":1123},[2958],{"type":998,"value":1250},{"type":993,"tag":1034,"props":2960,"children":2961},{"style":1046},[2962],{"type":998,"value":1277},{"type":993,"tag":1793,"props":2964,"children":2966},{"id":2965},"json-serialization-and-formatting",[2967],{"type":998,"value":2968},"⚡ JSON Serialization and Formatting",{"type":993,"tag":1001,"props":2970,"children":2971},{},[2972],{"type":998,"value":2973},"Serialization controls how Python objects are converted to JSON format, with options for formatting and readability.",{"type":993,"tag":2051,"props":2975,"children":2977},{"id":2976},"pretty-printing-and-formatting",[2978],{"type":998,"value":2979},"Pretty Printing and Formatting",{"type":993,"tag":1001,"props":2981,"children":2982},{},[2983],{"type":998,"value":2984},"Formatting options improve JSON readability for debugging and human consumption while maintaining data integrity.",{"type":993,"tag":1021,"props":2986,"children":2987},{},[2988],{"type":993,"tag":1025,"props":2989,"children":2991},{"className":1027,"code":2990,"language":6,"meta":8,"style":8},"import json\n\ndata = {\n    \"users\": [\n        {\"id\": 1, \"name\": \"Alice\", \"email\": \"alice@example.com\"},\n        {\"id\": 2, \"name\": \"Bob\", \"email\": \"bob@example.com\"}\n    ],\n    \"metadata\": {\"version\": \"1.0\", \"created\": \"2024-01-15\"}\n}\n\n# Compact format (default)\ncompact = json.dumps(data)\nprint(\"Compact JSON:\")\nprint(compact[:100] + \"...\")\n\n# Pretty formatted with indentation\npretty = json.dumps(data, indent=2)\nprint(\"\\nPretty formatted JSON:\")\nprint(pretty)\n\n# Sort keys for consistent output\nsorted_json = json.dumps(data, indent=2, sort_keys=True)\nprint(\"\\nSorted keys:\")\nprint(sorted_json)\n\n# Custom separators for ultra-compact format\nultra_compact = json.dumps(data, separators=(',', ':'))\nprint(f\"\\nUltra-compact: {ultra_compact[:80]}...\")\n",[2992],{"type":993,"tag":1007,"props":2993,"children":2994},{"__ignoreMap":8},[2995,3006,3013,3028,3041,3102,3159,3167,3215,3222,3229,3237,3253,3273,3309,3316,3324,3357,3385,3397,3404,3412,3461,3489,3501,3508,3516,3564],{"type":993,"tag":1034,"props":2996,"children":2997},{"class":1036,"line":12},[2998,3002],{"type":993,"tag":1034,"props":2999,"children":3000},{"style":1040},[3001],{"type":998,"value":1043},{"type":993,"tag":1034,"props":3003,"children":3004},{"style":1046},[3005],{"type":998,"value":1049},{"type":993,"tag":1034,"props":3007,"children":3008},{"class":1036,"line":27},[3009],{"type":993,"tag":1034,"props":3010,"children":3011},{"emptyLinePlaceholder":13},[3012],{"type":998,"value":1057},{"type":993,"tag":1034,"props":3014,"children":3015},{"class":1036,"line":36},[3016,3020,3024],{"type":993,"tag":1034,"props":3017,"children":3018},{"style":1046},[3019],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3021,"children":3022},{"style":1040},[3023],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3025,"children":3026},{"style":1046},[3027],{"type":998,"value":1084},{"type":993,"tag":1034,"props":3029,"children":3030},{"class":1036,"line":45},[3031,3036],{"type":993,"tag":1034,"props":3032,"children":3033},{"style":1090},[3034],{"type":998,"value":3035},"    \"users\"",{"type":993,"tag":1034,"props":3037,"children":3038},{"style":1046},[3039],{"type":998,"value":3040},": [\n",{"type":993,"tag":1034,"props":3042,"children":3043},{"class":1036,"line":54},[3044,3049,3054,3058,3062,3066,3071,3075,3080,3084,3089,3093,3098],{"type":993,"tag":1034,"props":3045,"children":3046},{"style":1046},[3047],{"type":998,"value":3048},"        {",{"type":993,"tag":1034,"props":3050,"children":3051},{"style":1090},[3052],{"type":998,"value":3053},"\"id\"",{"type":993,"tag":1034,"props":3055,"children":3056},{"style":1046},[3057],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3059,"children":3060},{"style":1123},[3061],{"type":998,"value":2264},{"type":993,"tag":1034,"props":3063,"children":3064},{"style":1046},[3065],{"type":998,"value":1153},{"type":993,"tag":1034,"props":3067,"children":3068},{"style":1090},[3069],{"type":998,"value":3070},"\"name\"",{"type":993,"tag":1034,"props":3072,"children":3073},{"style":1046},[3074],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3076,"children":3077},{"style":1090},[3078],{"type":998,"value":3079},"\"Alice\"",{"type":993,"tag":1034,"props":3081,"children":3082},{"style":1046},[3083],{"type":998,"value":1153},{"type":993,"tag":1034,"props":3085,"children":3086},{"style":1090},[3087],{"type":998,"value":3088},"\"email\"",{"type":993,"tag":1034,"props":3090,"children":3091},{"style":1046},[3092],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3094,"children":3095},{"style":1090},[3096],{"type":998,"value":3097},"\"alice@example.com\"",{"type":993,"tag":1034,"props":3099,"children":3100},{"style":1046},[3101],{"type":998,"value":2713},{"type":993,"tag":1034,"props":3103,"children":3104},{"class":1036,"line":63},[3105,3109,3113,3117,3121,3125,3129,3133,3138,3142,3146,3150,3155],{"type":993,"tag":1034,"props":3106,"children":3107},{"style":1046},[3108],{"type":998,"value":3048},{"type":993,"tag":1034,"props":3110,"children":3111},{"style":1090},[3112],{"type":998,"value":3053},{"type":993,"tag":1034,"props":3114,"children":3115},{"style":1046},[3116],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3118,"children":3119},{"style":1123},[3120],{"type":998,"value":1752},{"type":993,"tag":1034,"props":3122,"children":3123},{"style":1046},[3124],{"type":998,"value":1153},{"type":993,"tag":1034,"props":3126,"children":3127},{"style":1090},[3128],{"type":998,"value":3070},{"type":993,"tag":1034,"props":3130,"children":3131},{"style":1046},[3132],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3134,"children":3135},{"style":1090},[3136],{"type":998,"value":3137},"\"Bob\"",{"type":993,"tag":1034,"props":3139,"children":3140},{"style":1046},[3141],{"type":998,"value":1153},{"type":993,"tag":1034,"props":3143,"children":3144},{"style":1090},[3145],{"type":998,"value":3088},{"type":993,"tag":1034,"props":3147,"children":3148},{"style":1046},[3149],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3151,"children":3152},{"style":1090},[3153],{"type":998,"value":3154},"\"bob@example.com\"",{"type":993,"tag":1034,"props":3156,"children":3157},{"style":1046},[3158],{"type":998,"value":1218},{"type":993,"tag":1034,"props":3160,"children":3161},{"class":1036,"line":72},[3162],{"type":993,"tag":1034,"props":3163,"children":3164},{"style":1046},[3165],{"type":998,"value":3166},"    ],\n",{"type":993,"tag":1034,"props":3168,"children":3169},{"class":1036,"line":81},[3170,3175,3179,3184,3188,3193,3197,3202,3206,3211],{"type":993,"tag":1034,"props":3171,"children":3172},{"style":1090},[3173],{"type":998,"value":3174},"    \"metadata\"",{"type":993,"tag":1034,"props":3176,"children":3177},{"style":1046},[3178],{"type":998,"value":2688},{"type":993,"tag":1034,"props":3180,"children":3181},{"style":1090},[3182],{"type":998,"value":3183},"\"version\"",{"type":993,"tag":1034,"props":3185,"children":3186},{"style":1046},[3187],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3189,"children":3190},{"style":1090},[3191],{"type":998,"value":3192},"\"1.0\"",{"type":993,"tag":1034,"props":3194,"children":3195},{"style":1046},[3196],{"type":998,"value":1153},{"type":993,"tag":1034,"props":3198,"children":3199},{"style":1090},[3200],{"type":998,"value":3201},"\"created\"",{"type":993,"tag":1034,"props":3203,"children":3204},{"style":1046},[3205],{"type":998,"value":1098},{"type":993,"tag":1034,"props":3207,"children":3208},{"style":1090},[3209],{"type":998,"value":3210},"\"2024-01-15\"",{"type":993,"tag":1034,"props":3212,"children":3213},{"style":1046},[3214],{"type":998,"value":1218},{"type":993,"tag":1034,"props":3216,"children":3217},{"class":1036,"line":91},[3218],{"type":993,"tag":1034,"props":3219,"children":3220},{"style":1046},[3221],{"type":998,"value":1218},{"type":993,"tag":1034,"props":3223,"children":3224},{"class":1036,"line":100},[3225],{"type":993,"tag":1034,"props":3226,"children":3227},{"emptyLinePlaceholder":13},[3228],{"type":998,"value":1057},{"type":993,"tag":1034,"props":3230,"children":3231},{"class":1036,"line":109},[3232],{"type":993,"tag":1034,"props":3233,"children":3234},{"style":1063},[3235],{"type":998,"value":3236},"# Compact format (default)\n",{"type":993,"tag":1034,"props":3238,"children":3239},{"class":1036,"line":118},[3240,3245,3249],{"type":993,"tag":1034,"props":3241,"children":3242},{"style":1046},[3243],{"type":998,"value":3244},"compact ",{"type":993,"tag":1034,"props":3246,"children":3247},{"style":1040},[3248],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3250,"children":3251},{"style":1046},[3252],{"type":998,"value":1242},{"type":993,"tag":1034,"props":3254,"children":3255},{"class":1036,"line":127},[3256,3260,3264,3269],{"type":993,"tag":1034,"props":3257,"children":3258},{"style":1123},[3259],{"type":998,"value":1250},{"type":993,"tag":1034,"props":3261,"children":3262},{"style":1046},[3263],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3265,"children":3266},{"style":1090},[3267],{"type":998,"value":3268},"\"Compact JSON:\"",{"type":993,"tag":1034,"props":3270,"children":3271},{"style":1046},[3272],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3274,"children":3275},{"class":1036,"line":136},[3276,3280,3285,3290,3295,3300,3305],{"type":993,"tag":1034,"props":3277,"children":3278},{"style":1123},[3279],{"type":998,"value":1250},{"type":993,"tag":1034,"props":3281,"children":3282},{"style":1046},[3283],{"type":998,"value":3284},"(compact[:",{"type":993,"tag":1034,"props":3286,"children":3287},{"style":1123},[3288],{"type":998,"value":3289},"100",{"type":993,"tag":1034,"props":3291,"children":3292},{"style":1046},[3293],{"type":998,"value":3294},"] ",{"type":993,"tag":1034,"props":3296,"children":3297},{"style":1040},[3298],{"type":998,"value":3299},"+",{"type":993,"tag":1034,"props":3301,"children":3302},{"style":1090},[3303],{"type":998,"value":3304}," \"...\"",{"type":993,"tag":1034,"props":3306,"children":3307},{"style":1046},[3308],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3310,"children":3311},{"class":1036,"line":146},[3312],{"type":993,"tag":1034,"props":3313,"children":3314},{"emptyLinePlaceholder":13},[3315],{"type":998,"value":1057},{"type":993,"tag":1034,"props":3317,"children":3318},{"class":1036,"line":155},[3319],{"type":993,"tag":1034,"props":3320,"children":3321},{"style":1063},[3322],{"type":998,"value":3323},"# Pretty formatted with indentation\n",{"type":993,"tag":1034,"props":3325,"children":3326},{"class":1036,"line":164},[3327,3332,3336,3341,3345,3349,3353],{"type":993,"tag":1034,"props":3328,"children":3329},{"style":1046},[3330],{"type":998,"value":3331},"pretty ",{"type":993,"tag":1034,"props":3333,"children":3334},{"style":1040},[3335],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3337,"children":3338},{"style":1046},[3339],{"type":998,"value":3340}," json.dumps(data, ",{"type":993,"tag":1034,"props":3342,"children":3343},{"style":1713},[3344],{"type":998,"value":1743},{"type":993,"tag":1034,"props":3346,"children":3347},{"style":1040},[3348],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3350,"children":3351},{"style":1123},[3352],{"type":998,"value":1752},{"type":993,"tag":1034,"props":3354,"children":3355},{"style":1046},[3356],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3358,"children":3359},{"class":1036,"line":173},[3360,3364,3368,3372,3376,3381],{"type":993,"tag":1034,"props":3361,"children":3362},{"style":1123},[3363],{"type":998,"value":1250},{"type":993,"tag":1034,"props":3365,"children":3366},{"style":1046},[3367],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3369,"children":3370},{"style":1090},[3371],{"type":998,"value":1349},{"type":993,"tag":1034,"props":3373,"children":3374},{"style":1123},[3375],{"type":998,"value":1354},{"type":993,"tag":1034,"props":3377,"children":3378},{"style":1090},[3379],{"type":998,"value":3380},"Pretty formatted JSON:\"",{"type":993,"tag":1034,"props":3382,"children":3383},{"style":1046},[3384],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3386,"children":3387},{"class":1036,"line":182},[3388,3392],{"type":993,"tag":1034,"props":3389,"children":3390},{"style":1123},[3391],{"type":998,"value":1250},{"type":993,"tag":1034,"props":3393,"children":3394},{"style":1046},[3395],{"type":998,"value":3396},"(pretty)\n",{"type":993,"tag":1034,"props":3398,"children":3399},{"class":1036,"line":191},[3400],{"type":993,"tag":1034,"props":3401,"children":3402},{"emptyLinePlaceholder":13},[3403],{"type":998,"value":1057},{"type":993,"tag":1034,"props":3405,"children":3406},{"class":1036,"line":201},[3407],{"type":993,"tag":1034,"props":3408,"children":3409},{"style":1063},[3410],{"type":998,"value":3411},"# Sort keys for consistent output\n",{"type":993,"tag":1034,"props":3413,"children":3414},{"class":1036,"line":210},[3415,3420,3424,3428,3432,3436,3440,3444,3449,3453,3457],{"type":993,"tag":1034,"props":3416,"children":3417},{"style":1046},[3418],{"type":998,"value":3419},"sorted_json ",{"type":993,"tag":1034,"props":3421,"children":3422},{"style":1040},[3423],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3425,"children":3426},{"style":1046},[3427],{"type":998,"value":3340},{"type":993,"tag":1034,"props":3429,"children":3430},{"style":1713},[3431],{"type":998,"value":1743},{"type":993,"tag":1034,"props":3433,"children":3434},{"style":1040},[3435],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3437,"children":3438},{"style":1123},[3439],{"type":998,"value":1752},{"type":993,"tag":1034,"props":3441,"children":3442},{"style":1046},[3443],{"type":998,"value":1153},{"type":993,"tag":1034,"props":3445,"children":3446},{"style":1713},[3447],{"type":998,"value":3448},"sort_keys",{"type":993,"tag":1034,"props":3450,"children":3451},{"style":1040},[3452],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3454,"children":3455},{"style":1123},[3456],{"type":998,"value":1189},{"type":993,"tag":1034,"props":3458,"children":3459},{"style":1046},[3460],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3462,"children":3463},{"class":1036,"line":219},[3464,3468,3472,3476,3480,3485],{"type":993,"tag":1034,"props":3465,"children":3466},{"style":1123},[3467],{"type":998,"value":1250},{"type":993,"tag":1034,"props":3469,"children":3470},{"style":1046},[3471],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3473,"children":3474},{"style":1090},[3475],{"type":998,"value":1349},{"type":993,"tag":1034,"props":3477,"children":3478},{"style":1123},[3479],{"type":998,"value":1354},{"type":993,"tag":1034,"props":3481,"children":3482},{"style":1090},[3483],{"type":998,"value":3484},"Sorted keys:\"",{"type":993,"tag":1034,"props":3486,"children":3487},{"style":1046},[3488],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3490,"children":3491},{"class":1036,"line":228},[3492,3496],{"type":993,"tag":1034,"props":3493,"children":3494},{"style":1123},[3495],{"type":998,"value":1250},{"type":993,"tag":1034,"props":3497,"children":3498},{"style":1046},[3499],{"type":998,"value":3500},"(sorted_json)\n",{"type":993,"tag":1034,"props":3502,"children":3503},{"class":1036,"line":238},[3504],{"type":993,"tag":1034,"props":3505,"children":3506},{"emptyLinePlaceholder":13},[3507],{"type":998,"value":1057},{"type":993,"tag":1034,"props":3509,"children":3510},{"class":1036,"line":247},[3511],{"type":993,"tag":1034,"props":3512,"children":3513},{"style":1063},[3514],{"type":998,"value":3515},"# Custom separators for ultra-compact format\n",{"type":993,"tag":1034,"props":3517,"children":3518},{"class":1036,"line":256},[3519,3524,3528,3532,3537,3541,3545,3550,3554,3559],{"type":993,"tag":1034,"props":3520,"children":3521},{"style":1046},[3522],{"type":998,"value":3523},"ultra_compact ",{"type":993,"tag":1034,"props":3525,"children":3526},{"style":1040},[3527],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3529,"children":3530},{"style":1046},[3531],{"type":998,"value":3340},{"type":993,"tag":1034,"props":3533,"children":3534},{"style":1713},[3535],{"type":998,"value":3536},"separators",{"type":993,"tag":1034,"props":3538,"children":3539},{"style":1040},[3540],{"type":998,"value":1079},{"type":993,"tag":1034,"props":3542,"children":3543},{"style":1046},[3544],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3546,"children":3547},{"style":1090},[3548],{"type":998,"value":3549},"','",{"type":993,"tag":1034,"props":3551,"children":3552},{"style":1046},[3553],{"type":998,"value":1153},{"type":993,"tag":1034,"props":3555,"children":3556},{"style":1090},[3557],{"type":998,"value":3558},"':'",{"type":993,"tag":1034,"props":3560,"children":3561},{"style":1046},[3562],{"type":998,"value":3563},"))\n",{"type":993,"tag":1034,"props":3565,"children":3566},{"class":1036,"line":265},[3567,3571,3575,3579,3583,3587,3592,3596,3601,3606,3610,3614,3619],{"type":993,"tag":1034,"props":3568,"children":3569},{"style":1123},[3570],{"type":998,"value":1250},{"type":993,"tag":1034,"props":3572,"children":3573},{"style":1046},[3574],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3576,"children":3577},{"style":1040},[3578],{"type":998,"value":1391},{"type":993,"tag":1034,"props":3580,"children":3581},{"style":1090},[3582],{"type":998,"value":1349},{"type":993,"tag":1034,"props":3584,"children":3585},{"style":1123},[3586],{"type":998,"value":1354},{"type":993,"tag":1034,"props":3588,"children":3589},{"style":1090},[3590],{"type":998,"value":3591},"Ultra-compact: ",{"type":993,"tag":1034,"props":3593,"children":3594},{"style":1123},[3595],{"type":998,"value":1401},{"type":993,"tag":1034,"props":3597,"children":3598},{"style":1046},[3599],{"type":998,"value":3600},"ultra_compact[:",{"type":993,"tag":1034,"props":3602,"children":3603},{"style":1123},[3604],{"type":998,"value":3605},"80",{"type":993,"tag":1034,"props":3607,"children":3608},{"style":1046},[3609],{"type":998,"value":1416},{"type":993,"tag":1034,"props":3611,"children":3612},{"style":1123},[3613],{"type":998,"value":1421},{"type":993,"tag":1034,"props":3615,"children":3616},{"style":1090},[3617],{"type":998,"value":3618},"...\"",{"type":993,"tag":1034,"props":3620,"children":3621},{"style":1046},[3622],{"type":998,"value":1265},{"type":993,"tag":2051,"props":3624,"children":3626},{"id":3625},"custom-json-encoding",[3627],{"type":998,"value":3628},"Custom JSON Encoding",{"type":993,"tag":1001,"props":3630,"children":3631},{},[3632],{"type":998,"value":3633},"Custom encoders handle Python objects that don't naturally serialize to JSON.",{"type":993,"tag":1021,"props":3635,"children":3636},{},[3637],{"type":993,"tag":1025,"props":3638,"children":3640},{"className":1027,"code":3639,"language":6,"meta":8,"style":8},"import json\nimport datetime\nfrom decimal import Decimal\n\nclass CustomJSONEncoder(json.JSONEncoder):\n    \"\"\"Custom encoder for special Python types\"\"\"\n    \n    def default(self, obj):\n        if isinstance(obj, datetime.datetime):\n            return obj.isoformat()\n        elif isinstance(obj, datetime.date):\n            return obj.isoformat()\n        elif isinstance(obj, Decimal):\n            return float(obj)\n        elif isinstance(obj, set):\n            return list(obj)\n        elif hasattr(obj, '__dict__'):\n            return obj.__dict__\n        return super().default(obj)\n\nclass Person:\n    def __init__(self, name, birth_date):\n        self.name = name\n        self.birth_date = birth_date\n        self.created_at = datetime.datetime.now()\n\n# Create test data with special types\nperson = Person(\"Alice\", datetime.date(1990, 5, 15))\ncomplex_data = {\n    \"person\": person,\n    \"price\": Decimal(\"29.99\"),\n    \"tags\": {\"python\", \"json\", \"tutorial\"},\n    \"timestamp\": datetime.datetime.now()\n}\n\n# Serialize with custom encoder\njson_string = json.dumps(complex_data, cls=CustomJSONEncoder, indent=2)\nprint(\"Custom encoded JSON:\")\nprint(json_string)\n",[3641],{"type":993,"tag":1007,"props":3642,"children":3643},{"__ignoreMap":8},[3644,3655,3666,3688,3695,3732,3740,3748,3766,3784,3797,3814,3825,3841,3858,3883,3899,3924,3941,3959,3966,3982,3999,4021,4042,4063,4070,4078,4131,4147,4160,4183,4222,4235,4242,4249,4257,4303,4323],{"type":993,"tag":1034,"props":3645,"children":3646},{"class":1036,"line":12},[3647,3651],{"type":993,"tag":1034,"props":3648,"children":3649},{"style":1040},[3650],{"type":998,"value":1043},{"type":993,"tag":1034,"props":3652,"children":3653},{"style":1046},[3654],{"type":998,"value":1049},{"type":993,"tag":1034,"props":3656,"children":3657},{"class":1036,"line":27},[3658,3662],{"type":993,"tag":1034,"props":3659,"children":3660},{"style":1040},[3661],{"type":998,"value":1043},{"type":993,"tag":1034,"props":3663,"children":3664},{"style":1046},[3665],{"type":998,"value":2094},{"type":993,"tag":1034,"props":3667,"children":3668},{"class":1036,"line":36},[3669,3674,3679,3683],{"type":993,"tag":1034,"props":3670,"children":3671},{"style":1040},[3672],{"type":998,"value":3673},"from",{"type":993,"tag":1034,"props":3675,"children":3676},{"style":1046},[3677],{"type":998,"value":3678}," decimal ",{"type":993,"tag":1034,"props":3680,"children":3681},{"style":1040},[3682],{"type":998,"value":1043},{"type":993,"tag":1034,"props":3684,"children":3685},{"style":1046},[3686],{"type":998,"value":3687}," Decimal\n",{"type":993,"tag":1034,"props":3689,"children":3690},{"class":1036,"line":45},[3691],{"type":993,"tag":1034,"props":3692,"children":3693},{"emptyLinePlaceholder":13},[3694],{"type":998,"value":1057},{"type":993,"tag":1034,"props":3696,"children":3697},{"class":1036,"line":54},[3698,3703,3709,3713,3717,3722,3727],{"type":993,"tag":1034,"props":3699,"children":3700},{"style":1040},[3701],{"type":998,"value":3702},"class",{"type":993,"tag":1034,"props":3704,"children":3706},{"style":3705},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[3707],{"type":998,"value":3708}," CustomJSONEncoder",{"type":993,"tag":1034,"props":3710,"children":3711},{"style":1046},[3712],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3714,"children":3715},{"style":3705},[3716],{"type":998,"value":1012},{"type":993,"tag":1034,"props":3718,"children":3719},{"style":1046},[3720],{"type":998,"value":3721},".",{"type":993,"tag":1034,"props":3723,"children":3724},{"style":3705},[3725],{"type":998,"value":3726},"JSONEncoder",{"type":993,"tag":1034,"props":3728,"children":3729},{"style":1046},[3730],{"type":998,"value":3731},"):\n",{"type":993,"tag":1034,"props":3733,"children":3734},{"class":1036,"line":63},[3735],{"type":993,"tag":1034,"props":3736,"children":3737},{"style":1090},[3738],{"type":998,"value":3739},"    \"\"\"Custom encoder for special Python types\"\"\"\n",{"type":993,"tag":1034,"props":3741,"children":3742},{"class":1036,"line":72},[3743],{"type":993,"tag":1034,"props":3744,"children":3745},{"style":1046},[3746],{"type":998,"value":3747},"    \n",{"type":993,"tag":1034,"props":3749,"children":3750},{"class":1036,"line":81},[3751,3756,3761],{"type":993,"tag":1034,"props":3752,"children":3753},{"style":1040},[3754],{"type":998,"value":3755},"    def",{"type":993,"tag":1034,"props":3757,"children":3758},{"style":3705},[3759],{"type":998,"value":3760}," default",{"type":993,"tag":1034,"props":3762,"children":3763},{"style":1046},[3764],{"type":998,"value":3765},"(self, obj):\n",{"type":993,"tag":1034,"props":3767,"children":3768},{"class":1036,"line":91},[3769,3774,3779],{"type":993,"tag":1034,"props":3770,"children":3771},{"style":1040},[3772],{"type":998,"value":3773},"        if",{"type":993,"tag":1034,"props":3775,"children":3776},{"style":1123},[3777],{"type":998,"value":3778}," isinstance",{"type":993,"tag":1034,"props":3780,"children":3781},{"style":1046},[3782],{"type":998,"value":3783},"(obj, datetime.datetime):\n",{"type":993,"tag":1034,"props":3785,"children":3786},{"class":1036,"line":100},[3787,3792],{"type":993,"tag":1034,"props":3788,"children":3789},{"style":1040},[3790],{"type":998,"value":3791},"            return",{"type":993,"tag":1034,"props":3793,"children":3794},{"style":1046},[3795],{"type":998,"value":3796}," obj.isoformat()\n",{"type":993,"tag":1034,"props":3798,"children":3799},{"class":1036,"line":109},[3800,3805,3809],{"type":993,"tag":1034,"props":3801,"children":3802},{"style":1040},[3803],{"type":998,"value":3804},"        elif",{"type":993,"tag":1034,"props":3806,"children":3807},{"style":1123},[3808],{"type":998,"value":3778},{"type":993,"tag":1034,"props":3810,"children":3811},{"style":1046},[3812],{"type":998,"value":3813},"(obj, datetime.date):\n",{"type":993,"tag":1034,"props":3815,"children":3816},{"class":1036,"line":118},[3817,3821],{"type":993,"tag":1034,"props":3818,"children":3819},{"style":1040},[3820],{"type":998,"value":3791},{"type":993,"tag":1034,"props":3822,"children":3823},{"style":1046},[3824],{"type":998,"value":3796},{"type":993,"tag":1034,"props":3826,"children":3827},{"class":1036,"line":127},[3828,3832,3836],{"type":993,"tag":1034,"props":3829,"children":3830},{"style":1040},[3831],{"type":998,"value":3804},{"type":993,"tag":1034,"props":3833,"children":3834},{"style":1123},[3835],{"type":998,"value":3778},{"type":993,"tag":1034,"props":3837,"children":3838},{"style":1046},[3839],{"type":998,"value":3840},"(obj, Decimal):\n",{"type":993,"tag":1034,"props":3842,"children":3843},{"class":1036,"line":136},[3844,3848,3853],{"type":993,"tag":1034,"props":3845,"children":3846},{"style":1040},[3847],{"type":998,"value":3791},{"type":993,"tag":1034,"props":3849,"children":3850},{"style":1123},[3851],{"type":998,"value":3852}," float",{"type":993,"tag":1034,"props":3854,"children":3855},{"style":1046},[3856],{"type":998,"value":3857},"(obj)\n",{"type":993,"tag":1034,"props":3859,"children":3860},{"class":1036,"line":146},[3861,3865,3869,3874,3879],{"type":993,"tag":1034,"props":3862,"children":3863},{"style":1040},[3864],{"type":998,"value":3804},{"type":993,"tag":1034,"props":3866,"children":3867},{"style":1123},[3868],{"type":998,"value":3778},{"type":993,"tag":1034,"props":3870,"children":3871},{"style":1046},[3872],{"type":998,"value":3873},"(obj, ",{"type":993,"tag":1034,"props":3875,"children":3876},{"style":1123},[3877],{"type":998,"value":3878},"set",{"type":993,"tag":1034,"props":3880,"children":3881},{"style":1046},[3882],{"type":998,"value":3731},{"type":993,"tag":1034,"props":3884,"children":3885},{"class":1036,"line":155},[3886,3890,3895],{"type":993,"tag":1034,"props":3887,"children":3888},{"style":1040},[3889],{"type":998,"value":3791},{"type":993,"tag":1034,"props":3891,"children":3892},{"style":1123},[3893],{"type":998,"value":3894}," list",{"type":993,"tag":1034,"props":3896,"children":3897},{"style":1046},[3898],{"type":998,"value":3857},{"type":993,"tag":1034,"props":3900,"children":3901},{"class":1036,"line":164},[3902,3906,3911,3915,3920],{"type":993,"tag":1034,"props":3903,"children":3904},{"style":1040},[3905],{"type":998,"value":3804},{"type":993,"tag":1034,"props":3907,"children":3908},{"style":1123},[3909],{"type":998,"value":3910}," hasattr",{"type":993,"tag":1034,"props":3912,"children":3913},{"style":1046},[3914],{"type":998,"value":3873},{"type":993,"tag":1034,"props":3916,"children":3917},{"style":1090},[3918],{"type":998,"value":3919},"'__dict__'",{"type":993,"tag":1034,"props":3921,"children":3922},{"style":1046},[3923],{"type":998,"value":3731},{"type":993,"tag":1034,"props":3925,"children":3926},{"class":1036,"line":173},[3927,3931,3936],{"type":993,"tag":1034,"props":3928,"children":3929},{"style":1040},[3930],{"type":998,"value":3791},{"type":993,"tag":1034,"props":3932,"children":3933},{"style":1046},[3934],{"type":998,"value":3935}," obj.",{"type":993,"tag":1034,"props":3937,"children":3938},{"style":1123},[3939],{"type":998,"value":3940},"__dict__\n",{"type":993,"tag":1034,"props":3942,"children":3943},{"class":1036,"line":182},[3944,3949,3954],{"type":993,"tag":1034,"props":3945,"children":3946},{"style":1040},[3947],{"type":998,"value":3948},"        return",{"type":993,"tag":1034,"props":3950,"children":3951},{"style":1123},[3952],{"type":998,"value":3953}," super",{"type":993,"tag":1034,"props":3955,"children":3956},{"style":1046},[3957],{"type":998,"value":3958},"().default(obj)\n",{"type":993,"tag":1034,"props":3960,"children":3961},{"class":1036,"line":191},[3962],{"type":993,"tag":1034,"props":3963,"children":3964},{"emptyLinePlaceholder":13},[3965],{"type":998,"value":1057},{"type":993,"tag":1034,"props":3967,"children":3968},{"class":1036,"line":201},[3969,3973,3978],{"type":993,"tag":1034,"props":3970,"children":3971},{"style":1040},[3972],{"type":998,"value":3702},{"type":993,"tag":1034,"props":3974,"children":3975},{"style":3705},[3976],{"type":998,"value":3977}," Person",{"type":993,"tag":1034,"props":3979,"children":3980},{"style":1046},[3981],{"type":998,"value":1721},{"type":993,"tag":1034,"props":3983,"children":3984},{"class":1036,"line":210},[3985,3989,3994],{"type":993,"tag":1034,"props":3986,"children":3987},{"style":1040},[3988],{"type":998,"value":3755},{"type":993,"tag":1034,"props":3990,"children":3991},{"style":1123},[3992],{"type":998,"value":3993}," __init__",{"type":993,"tag":1034,"props":3995,"children":3996},{"style":1046},[3997],{"type":998,"value":3998},"(self, name, birth_date):\n",{"type":993,"tag":1034,"props":4000,"children":4001},{"class":1036,"line":219},[4002,4007,4012,4016],{"type":993,"tag":1034,"props":4003,"children":4004},{"style":1123},[4005],{"type":998,"value":4006},"        self",{"type":993,"tag":1034,"props":4008,"children":4009},{"style":1046},[4010],{"type":998,"value":4011},".name ",{"type":993,"tag":1034,"props":4013,"children":4014},{"style":1040},[4015],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4017,"children":4018},{"style":1046},[4019],{"type":998,"value":4020}," name\n",{"type":993,"tag":1034,"props":4022,"children":4023},{"class":1036,"line":228},[4024,4028,4033,4037],{"type":993,"tag":1034,"props":4025,"children":4026},{"style":1123},[4027],{"type":998,"value":4006},{"type":993,"tag":1034,"props":4029,"children":4030},{"style":1046},[4031],{"type":998,"value":4032},".birth_date ",{"type":993,"tag":1034,"props":4034,"children":4035},{"style":1040},[4036],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4038,"children":4039},{"style":1046},[4040],{"type":998,"value":4041}," birth_date\n",{"type":993,"tag":1034,"props":4043,"children":4044},{"class":1036,"line":238},[4045,4049,4054,4058],{"type":993,"tag":1034,"props":4046,"children":4047},{"style":1123},[4048],{"type":998,"value":4006},{"type":993,"tag":1034,"props":4050,"children":4051},{"style":1046},[4052],{"type":998,"value":4053},".created_at ",{"type":993,"tag":1034,"props":4055,"children":4056},{"style":1040},[4057],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4059,"children":4060},{"style":1046},[4061],{"type":998,"value":4062}," datetime.datetime.now()\n",{"type":993,"tag":1034,"props":4064,"children":4065},{"class":1036,"line":247},[4066],{"type":993,"tag":1034,"props":4067,"children":4068},{"emptyLinePlaceholder":13},[4069],{"type":998,"value":1057},{"type":993,"tag":1034,"props":4071,"children":4072},{"class":1036,"line":256},[4073],{"type":993,"tag":1034,"props":4074,"children":4075},{"style":1063},[4076],{"type":998,"value":4077},"# Create test data with special types\n",{"type":993,"tag":1034,"props":4079,"children":4080},{"class":1036,"line":265},[4081,4086,4090,4095,4099,4104,4109,4113,4118,4122,4127],{"type":993,"tag":1034,"props":4082,"children":4083},{"style":1046},[4084],{"type":998,"value":4085},"person ",{"type":993,"tag":1034,"props":4087,"children":4088},{"style":1040},[4089],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4091,"children":4092},{"style":1046},[4093],{"type":998,"value":4094}," Person(",{"type":993,"tag":1034,"props":4096,"children":4097},{"style":1090},[4098],{"type":998,"value":3079},{"type":993,"tag":1034,"props":4100,"children":4101},{"style":1046},[4102],{"type":998,"value":4103},", datetime.date(",{"type":993,"tag":1034,"props":4105,"children":4106},{"style":1123},[4107],{"type":998,"value":4108},"1990",{"type":993,"tag":1034,"props":4110,"children":4111},{"style":1046},[4112],{"type":998,"value":1153},{"type":993,"tag":1034,"props":4114,"children":4115},{"style":1123},[4116],{"type":998,"value":4117},"5",{"type":993,"tag":1034,"props":4119,"children":4120},{"style":1046},[4121],{"type":998,"value":1153},{"type":993,"tag":1034,"props":4123,"children":4124},{"style":1123},[4125],{"type":998,"value":4126},"15",{"type":993,"tag":1034,"props":4128,"children":4129},{"style":1046},[4130],{"type":998,"value":3563},{"type":993,"tag":1034,"props":4132,"children":4133},{"class":1036,"line":274},[4134,4139,4143],{"type":993,"tag":1034,"props":4135,"children":4136},{"style":1046},[4137],{"type":998,"value":4138},"complex_data ",{"type":993,"tag":1034,"props":4140,"children":4141},{"style":1040},[4142],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4144,"children":4145},{"style":1046},[4146],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4148,"children":4149},{"class":1036,"line":284},[4150,4155],{"type":993,"tag":1034,"props":4151,"children":4152},{"style":1090},[4153],{"type":998,"value":4154},"    \"person\"",{"type":993,"tag":1034,"props":4156,"children":4157},{"style":1046},[4158],{"type":998,"value":4159},": person,\n",{"type":993,"tag":1034,"props":4161,"children":4162},{"class":1036,"line":293},[4163,4168,4173,4178],{"type":993,"tag":1034,"props":4164,"children":4165},{"style":1090},[4166],{"type":998,"value":4167},"    \"price\"",{"type":993,"tag":1034,"props":4169,"children":4170},{"style":1046},[4171],{"type":998,"value":4172},": Decimal(",{"type":993,"tag":1034,"props":4174,"children":4175},{"style":1090},[4176],{"type":998,"value":4177},"\"29.99\"",{"type":993,"tag":1034,"props":4179,"children":4180},{"style":1046},[4181],{"type":998,"value":4182},"),\n",{"type":993,"tag":1034,"props":4184,"children":4185},{"class":1036,"line":302},[4186,4191,4195,4200,4204,4209,4213,4218],{"type":993,"tag":1034,"props":4187,"children":4188},{"style":1090},[4189],{"type":998,"value":4190},"    \"tags\"",{"type":993,"tag":1034,"props":4192,"children":4193},{"style":1046},[4194],{"type":998,"value":2688},{"type":993,"tag":1034,"props":4196,"children":4197},{"style":1090},[4198],{"type":998,"value":4199},"\"python\"",{"type":993,"tag":1034,"props":4201,"children":4202},{"style":1046},[4203],{"type":998,"value":1153},{"type":993,"tag":1034,"props":4205,"children":4206},{"style":1090},[4207],{"type":998,"value":4208},"\"json\"",{"type":993,"tag":1034,"props":4210,"children":4211},{"style":1046},[4212],{"type":998,"value":1153},{"type":993,"tag":1034,"props":4214,"children":4215},{"style":1090},[4216],{"type":998,"value":4217},"\"tutorial\"",{"type":993,"tag":1034,"props":4219,"children":4220},{"style":1046},[4221],{"type":998,"value":2713},{"type":993,"tag":1034,"props":4223,"children":4224},{"class":1036,"line":311},[4225,4230],{"type":993,"tag":1034,"props":4226,"children":4227},{"style":1090},[4228],{"type":998,"value":4229},"    \"timestamp\"",{"type":993,"tag":1034,"props":4231,"children":4232},{"style":1046},[4233],{"type":998,"value":4234},": datetime.datetime.now()\n",{"type":993,"tag":1034,"props":4236,"children":4237},{"class":1036,"line":320},[4238],{"type":993,"tag":1034,"props":4239,"children":4240},{"style":1046},[4241],{"type":998,"value":1218},{"type":993,"tag":1034,"props":4243,"children":4244},{"class":1036,"line":329},[4245],{"type":993,"tag":1034,"props":4246,"children":4247},{"emptyLinePlaceholder":13},[4248],{"type":998,"value":1057},{"type":993,"tag":1034,"props":4250,"children":4251},{"class":1036,"line":338},[4252],{"type":993,"tag":1034,"props":4253,"children":4254},{"style":1063},[4255],{"type":998,"value":4256},"# Serialize with custom encoder\n",{"type":993,"tag":1034,"props":4258,"children":4259},{"class":1036,"line":347},[4260,4264,4268,4273,4278,4282,4287,4291,4295,4299],{"type":993,"tag":1034,"props":4261,"children":4262},{"style":1046},[4263],{"type":998,"value":1233},{"type":993,"tag":1034,"props":4265,"children":4266},{"style":1040},[4267],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4269,"children":4270},{"style":1046},[4271],{"type":998,"value":4272}," json.dumps(complex_data, ",{"type":993,"tag":1034,"props":4274,"children":4275},{"style":1713},[4276],{"type":998,"value":4277},"cls",{"type":993,"tag":1034,"props":4279,"children":4280},{"style":1040},[4281],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4283,"children":4284},{"style":1046},[4285],{"type":998,"value":4286},"CustomJSONEncoder, ",{"type":993,"tag":1034,"props":4288,"children":4289},{"style":1713},[4290],{"type":998,"value":1743},{"type":993,"tag":1034,"props":4292,"children":4293},{"style":1040},[4294],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4296,"children":4297},{"style":1123},[4298],{"type":998,"value":1752},{"type":993,"tag":1034,"props":4300,"children":4301},{"style":1046},[4302],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4304,"children":4305},{"class":1036,"line":356},[4306,4310,4314,4319],{"type":993,"tag":1034,"props":4307,"children":4308},{"style":1123},[4309],{"type":998,"value":1250},{"type":993,"tag":1034,"props":4311,"children":4312},{"style":1046},[4313],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4315,"children":4316},{"style":1090},[4317],{"type":998,"value":4318},"\"Custom encoded JSON:\"",{"type":993,"tag":1034,"props":4320,"children":4321},{"style":1046},[4322],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4324,"children":4325},{"class":1036,"line":365},[4326,4330],{"type":993,"tag":1034,"props":4327,"children":4328},{"style":1123},[4329],{"type":998,"value":1250},{"type":993,"tag":1034,"props":4331,"children":4332},{"style":1046},[4333],{"type":998,"value":1277},{"type":993,"tag":1793,"props":4335,"children":4337},{"id":4336},"working-with-json-files",[4338],{"type":998,"value":4339},"🚀 Working with JSON Files",{"type":993,"tag":1001,"props":4341,"children":4342},{},[4343],{"type":998,"value":4344},"File operations enable persistent data storage and configuration management using JSON format.",{"type":993,"tag":2051,"props":4346,"children":4348},{"id":4347},"reading-and-writing-json-files",[4349],{"type":998,"value":4350},"Reading and Writing JSON Files",{"type":993,"tag":1001,"props":4352,"children":4353},{},[4354],{"type":998,"value":4355},"File-based JSON operations are essential for configuration management and data persistence.",{"type":993,"tag":1021,"props":4357,"children":4358},{},[4359],{"type":993,"tag":1025,"props":4360,"children":4362},{"className":1027,"code":4361,"language":6,"meta":8,"style":8},"import json\nimport os\n\ndef save_user_preferences(preferences, filename=\"user_config.json\"):\n    \"\"\"Save user preferences to JSON file\"\"\"\n    try:\n        with open(filename, 'w') as file:\n            json.dump(preferences, file, indent=2)\n        print(f\"Preferences saved to {filename}\")\n        return True\n    except Exception as e:\n        print(f\"Error saving preferences: {e}\")\n        return False\n\ndef load_user_preferences(filename=\"user_config.json\"):\n    \"\"\"Load user preferences from JSON file\"\"\"\n    try:\n        if not os.path.exists(filename):\n            print(f\"No preferences file found. Using defaults.\")\n            return None\n        \n        with open(filename, 'r') as file:\n            preferences = json.load(file)\n        print(f\"Preferences loaded from {filename}\")\n        return preferences\n    except json.JSONDecodeError as e:\n        print(f\"Invalid JSON in {filename}: {e}\")\n        return None\n    except Exception as e:\n        print(f\"Error loading preferences: {e}\")\n        return None\n\n# Example usage\ndefault_prefs = {\n    \"theme\": \"dark\",\n    \"language\": \"en\",\n    \"notifications\": True,\n    \"auto_save\": True,\n    \"recent_files\": []\n}\n\n# Save preferences\nsave_user_preferences(default_prefs)\n\n# Load preferences\nloaded_prefs = load_user_preferences()\nif loaded_prefs:\n    print(\"Current preferences:\")\n    for key, value in loaded_prefs.items():\n        print(f\"  {key}: {value}\")\n",[4363],{"type":993,"tag":1007,"props":4364,"children":4365},{"__ignoreMap":8},[4366,4377,4389,4396,4427,4435,4447,4485,4517,4559,4571,4594,4635,4647,4654,4683,4691,4702,4719,4744,4756,4764,4800,4825,4865,4877,4897,4953,4964,4983,5023,5034,5041,5049,5065,5086,5107,5127,5147,5160,5167,5174,5182,5190,5197,5205,5222,5235,5256,5279],{"type":993,"tag":1034,"props":4367,"children":4368},{"class":1036,"line":12},[4369,4373],{"type":993,"tag":1034,"props":4370,"children":4371},{"style":1040},[4372],{"type":998,"value":1043},{"type":993,"tag":1034,"props":4374,"children":4375},{"style":1046},[4376],{"type":998,"value":1049},{"type":993,"tag":1034,"props":4378,"children":4379},{"class":1036,"line":27},[4380,4384],{"type":993,"tag":1034,"props":4381,"children":4382},{"style":1040},[4383],{"type":998,"value":1043},{"type":993,"tag":1034,"props":4385,"children":4386},{"style":1046},[4387],{"type":998,"value":4388}," os\n",{"type":993,"tag":1034,"props":4390,"children":4391},{"class":1036,"line":36},[4392],{"type":993,"tag":1034,"props":4393,"children":4394},{"emptyLinePlaceholder":13},[4395],{"type":998,"value":1057},{"type":993,"tag":1034,"props":4397,"children":4398},{"class":1036,"line":45},[4399,4404,4409,4414,4418,4423],{"type":993,"tag":1034,"props":4400,"children":4401},{"style":1040},[4402],{"type":998,"value":4403},"def",{"type":993,"tag":1034,"props":4405,"children":4406},{"style":3705},[4407],{"type":998,"value":4408}," save_user_preferences",{"type":993,"tag":1034,"props":4410,"children":4411},{"style":1046},[4412],{"type":998,"value":4413},"(preferences, filename",{"type":993,"tag":1034,"props":4415,"children":4416},{"style":1040},[4417],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4419,"children":4420},{"style":1090},[4421],{"type":998,"value":4422},"\"user_config.json\"",{"type":993,"tag":1034,"props":4424,"children":4425},{"style":1046},[4426],{"type":998,"value":3731},{"type":993,"tag":1034,"props":4428,"children":4429},{"class":1036,"line":54},[4430],{"type":993,"tag":1034,"props":4431,"children":4432},{"style":1090},[4433],{"type":998,"value":4434},"    \"\"\"Save user preferences to JSON file\"\"\"\n",{"type":993,"tag":1034,"props":4436,"children":4437},{"class":1036,"line":63},[4438,4443],{"type":993,"tag":1034,"props":4439,"children":4440},{"style":1040},[4441],{"type":998,"value":4442},"    try",{"type":993,"tag":1034,"props":4444,"children":4445},{"style":1046},[4446],{"type":998,"value":1721},{"type":993,"tag":1034,"props":4448,"children":4449},{"class":1036,"line":72},[4450,4455,4459,4464,4469,4473,4477,4481],{"type":993,"tag":1034,"props":4451,"children":4452},{"style":1040},[4453],{"type":998,"value":4454},"        with",{"type":993,"tag":1034,"props":4456,"children":4457},{"style":1123},[4458],{"type":998,"value":1682},{"type":993,"tag":1034,"props":4460,"children":4461},{"style":1046},[4462],{"type":998,"value":4463},"(filename, ",{"type":993,"tag":1034,"props":4465,"children":4466},{"style":1090},[4467],{"type":998,"value":4468},"'w'",{"type":993,"tag":1034,"props":4470,"children":4471},{"style":1046},[4472],{"type":998,"value":1705},{"type":993,"tag":1034,"props":4474,"children":4475},{"style":1040},[4476],{"type":998,"value":1710},{"type":993,"tag":1034,"props":4478,"children":4479},{"style":1713},[4480],{"type":998,"value":1716},{"type":993,"tag":1034,"props":4482,"children":4483},{"style":1046},[4484],{"type":998,"value":1721},{"type":993,"tag":1034,"props":4486,"children":4487},{"class":1036,"line":81},[4488,4493,4497,4501,4505,4509,4513],{"type":993,"tag":1034,"props":4489,"children":4490},{"style":1046},[4491],{"type":998,"value":4492},"            json.dump(preferences, ",{"type":993,"tag":1034,"props":4494,"children":4495},{"style":1713},[4496],{"type":998,"value":1734},{"type":993,"tag":1034,"props":4498,"children":4499},{"style":1046},[4500],{"type":998,"value":1153},{"type":993,"tag":1034,"props":4502,"children":4503},{"style":1713},[4504],{"type":998,"value":1743},{"type":993,"tag":1034,"props":4506,"children":4507},{"style":1040},[4508],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4510,"children":4511},{"style":1123},[4512],{"type":998,"value":1752},{"type":993,"tag":1034,"props":4514,"children":4515},{"style":1046},[4516],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4518,"children":4519},{"class":1036,"line":91},[4520,4525,4529,4533,4538,4542,4547,4551,4555],{"type":993,"tag":1034,"props":4521,"children":4522},{"style":1123},[4523],{"type":998,"value":4524},"        print",{"type":993,"tag":1034,"props":4526,"children":4527},{"style":1046},[4528],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4530,"children":4531},{"style":1040},[4532],{"type":998,"value":1391},{"type":993,"tag":1034,"props":4534,"children":4535},{"style":1090},[4536],{"type":998,"value":4537},"\"Preferences saved to ",{"type":993,"tag":1034,"props":4539,"children":4540},{"style":1123},[4541],{"type":998,"value":1401},{"type":993,"tag":1034,"props":4543,"children":4544},{"style":1046},[4545],{"type":998,"value":4546},"filename",{"type":993,"tag":1034,"props":4548,"children":4549},{"style":1123},[4550],{"type":998,"value":1421},{"type":993,"tag":1034,"props":4552,"children":4553},{"style":1090},[4554],{"type":998,"value":1349},{"type":993,"tag":1034,"props":4556,"children":4557},{"style":1046},[4558],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4560,"children":4561},{"class":1036,"line":100},[4562,4566],{"type":993,"tag":1034,"props":4563,"children":4564},{"style":1040},[4565],{"type":998,"value":3948},{"type":993,"tag":1034,"props":4567,"children":4568},{"style":1123},[4569],{"type":998,"value":4570}," True\n",{"type":993,"tag":1034,"props":4572,"children":4573},{"class":1036,"line":109},[4574,4579,4584,4589],{"type":993,"tag":1034,"props":4575,"children":4576},{"style":1040},[4577],{"type":998,"value":4578},"    except",{"type":993,"tag":1034,"props":4580,"children":4581},{"style":1123},[4582],{"type":998,"value":4583}," Exception",{"type":993,"tag":1034,"props":4585,"children":4586},{"style":1040},[4587],{"type":998,"value":4588}," as",{"type":993,"tag":1034,"props":4590,"children":4591},{"style":1046},[4592],{"type":998,"value":4593}," e:\n",{"type":993,"tag":1034,"props":4595,"children":4596},{"class":1036,"line":118},[4597,4601,4605,4609,4614,4618,4623,4627,4631],{"type":993,"tag":1034,"props":4598,"children":4599},{"style":1123},[4600],{"type":998,"value":4524},{"type":993,"tag":1034,"props":4602,"children":4603},{"style":1046},[4604],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4606,"children":4607},{"style":1040},[4608],{"type":998,"value":1391},{"type":993,"tag":1034,"props":4610,"children":4611},{"style":1090},[4612],{"type":998,"value":4613},"\"Error saving preferences: ",{"type":993,"tag":1034,"props":4615,"children":4616},{"style":1123},[4617],{"type":998,"value":1401},{"type":993,"tag":1034,"props":4619,"children":4620},{"style":1046},[4621],{"type":998,"value":4622},"e",{"type":993,"tag":1034,"props":4624,"children":4625},{"style":1123},[4626],{"type":998,"value":1421},{"type":993,"tag":1034,"props":4628,"children":4629},{"style":1090},[4630],{"type":998,"value":1349},{"type":993,"tag":1034,"props":4632,"children":4633},{"style":1046},[4634],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4636,"children":4637},{"class":1036,"line":127},[4638,4642],{"type":993,"tag":1034,"props":4639,"children":4640},{"style":1040},[4641],{"type":998,"value":3948},{"type":993,"tag":1034,"props":4643,"children":4644},{"style":1123},[4645],{"type":998,"value":4646}," False\n",{"type":993,"tag":1034,"props":4648,"children":4649},{"class":1036,"line":136},[4650],{"type":993,"tag":1034,"props":4651,"children":4652},{"emptyLinePlaceholder":13},[4653],{"type":998,"value":1057},{"type":993,"tag":1034,"props":4655,"children":4656},{"class":1036,"line":146},[4657,4661,4666,4671,4675,4679],{"type":993,"tag":1034,"props":4658,"children":4659},{"style":1040},[4660],{"type":998,"value":4403},{"type":993,"tag":1034,"props":4662,"children":4663},{"style":3705},[4664],{"type":998,"value":4665}," load_user_preferences",{"type":993,"tag":1034,"props":4667,"children":4668},{"style":1046},[4669],{"type":998,"value":4670},"(filename",{"type":993,"tag":1034,"props":4672,"children":4673},{"style":1040},[4674],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4676,"children":4677},{"style":1090},[4678],{"type":998,"value":4422},{"type":993,"tag":1034,"props":4680,"children":4681},{"style":1046},[4682],{"type":998,"value":3731},{"type":993,"tag":1034,"props":4684,"children":4685},{"class":1036,"line":155},[4686],{"type":993,"tag":1034,"props":4687,"children":4688},{"style":1090},[4689],{"type":998,"value":4690},"    \"\"\"Load user preferences from JSON file\"\"\"\n",{"type":993,"tag":1034,"props":4692,"children":4693},{"class":1036,"line":164},[4694,4698],{"type":993,"tag":1034,"props":4695,"children":4696},{"style":1040},[4697],{"type":998,"value":4442},{"type":993,"tag":1034,"props":4699,"children":4700},{"style":1046},[4701],{"type":998,"value":1721},{"type":993,"tag":1034,"props":4703,"children":4704},{"class":1036,"line":173},[4705,4709,4714],{"type":993,"tag":1034,"props":4706,"children":4707},{"style":1040},[4708],{"type":998,"value":3773},{"type":993,"tag":1034,"props":4710,"children":4711},{"style":1040},[4712],{"type":998,"value":4713}," not",{"type":993,"tag":1034,"props":4715,"children":4716},{"style":1046},[4717],{"type":998,"value":4718}," os.path.exists(filename):\n",{"type":993,"tag":1034,"props":4720,"children":4721},{"class":1036,"line":182},[4722,4727,4731,4735,4740],{"type":993,"tag":1034,"props":4723,"children":4724},{"style":1123},[4725],{"type":998,"value":4726},"            print",{"type":993,"tag":1034,"props":4728,"children":4729},{"style":1046},[4730],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4732,"children":4733},{"style":1040},[4734],{"type":998,"value":1391},{"type":993,"tag":1034,"props":4736,"children":4737},{"style":1090},[4738],{"type":998,"value":4739},"\"No preferences file found. Using defaults.\"",{"type":993,"tag":1034,"props":4741,"children":4742},{"style":1046},[4743],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4745,"children":4746},{"class":1036,"line":191},[4747,4751],{"type":993,"tag":1034,"props":4748,"children":4749},{"style":1040},[4750],{"type":998,"value":3791},{"type":993,"tag":1034,"props":4752,"children":4753},{"style":1123},[4754],{"type":998,"value":4755}," None\n",{"type":993,"tag":1034,"props":4757,"children":4758},{"class":1036,"line":201},[4759],{"type":993,"tag":1034,"props":4760,"children":4761},{"style":1046},[4762],{"type":998,"value":4763},"        \n",{"type":993,"tag":1034,"props":4765,"children":4766},{"class":1036,"line":210},[4767,4771,4775,4779,4784,4788,4792,4796],{"type":993,"tag":1034,"props":4768,"children":4769},{"style":1040},[4770],{"type":998,"value":4454},{"type":993,"tag":1034,"props":4772,"children":4773},{"style":1123},[4774],{"type":998,"value":1682},{"type":993,"tag":1034,"props":4776,"children":4777},{"style":1046},[4778],{"type":998,"value":4463},{"type":993,"tag":1034,"props":4780,"children":4781},{"style":1090},[4782],{"type":998,"value":4783},"'r'",{"type":993,"tag":1034,"props":4785,"children":4786},{"style":1046},[4787],{"type":998,"value":1705},{"type":993,"tag":1034,"props":4789,"children":4790},{"style":1040},[4791],{"type":998,"value":1710},{"type":993,"tag":1034,"props":4793,"children":4794},{"style":1713},[4795],{"type":998,"value":1716},{"type":993,"tag":1034,"props":4797,"children":4798},{"style":1046},[4799],{"type":998,"value":1721},{"type":993,"tag":1034,"props":4801,"children":4802},{"class":1036,"line":219},[4803,4808,4812,4817,4821],{"type":993,"tag":1034,"props":4804,"children":4805},{"style":1046},[4806],{"type":998,"value":4807},"            preferences ",{"type":993,"tag":1034,"props":4809,"children":4810},{"style":1040},[4811],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4813,"children":4814},{"style":1046},[4815],{"type":998,"value":4816}," json.load(",{"type":993,"tag":1034,"props":4818,"children":4819},{"style":1713},[4820],{"type":998,"value":1734},{"type":993,"tag":1034,"props":4822,"children":4823},{"style":1046},[4824],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4826,"children":4827},{"class":1036,"line":228},[4828,4832,4836,4840,4845,4849,4853,4857,4861],{"type":993,"tag":1034,"props":4829,"children":4830},{"style":1123},[4831],{"type":998,"value":4524},{"type":993,"tag":1034,"props":4833,"children":4834},{"style":1046},[4835],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4837,"children":4838},{"style":1040},[4839],{"type":998,"value":1391},{"type":993,"tag":1034,"props":4841,"children":4842},{"style":1090},[4843],{"type":998,"value":4844},"\"Preferences loaded from ",{"type":993,"tag":1034,"props":4846,"children":4847},{"style":1123},[4848],{"type":998,"value":1401},{"type":993,"tag":1034,"props":4850,"children":4851},{"style":1046},[4852],{"type":998,"value":4546},{"type":993,"tag":1034,"props":4854,"children":4855},{"style":1123},[4856],{"type":998,"value":1421},{"type":993,"tag":1034,"props":4858,"children":4859},{"style":1090},[4860],{"type":998,"value":1349},{"type":993,"tag":1034,"props":4862,"children":4863},{"style":1046},[4864],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4866,"children":4867},{"class":1036,"line":238},[4868,4872],{"type":993,"tag":1034,"props":4869,"children":4870},{"style":1040},[4871],{"type":998,"value":3948},{"type":993,"tag":1034,"props":4873,"children":4874},{"style":1046},[4875],{"type":998,"value":4876}," preferences\n",{"type":993,"tag":1034,"props":4878,"children":4879},{"class":1036,"line":247},[4880,4884,4889,4893],{"type":993,"tag":1034,"props":4881,"children":4882},{"style":1040},[4883],{"type":998,"value":4578},{"type":993,"tag":1034,"props":4885,"children":4886},{"style":1046},[4887],{"type":998,"value":4888}," json.JSONDecodeError ",{"type":993,"tag":1034,"props":4890,"children":4891},{"style":1040},[4892],{"type":998,"value":1710},{"type":993,"tag":1034,"props":4894,"children":4895},{"style":1046},[4896],{"type":998,"value":4593},{"type":993,"tag":1034,"props":4898,"children":4899},{"class":1036,"line":256},[4900,4904,4908,4912,4917,4921,4925,4929,4933,4937,4941,4945,4949],{"type":993,"tag":1034,"props":4901,"children":4902},{"style":1123},[4903],{"type":998,"value":4524},{"type":993,"tag":1034,"props":4905,"children":4906},{"style":1046},[4907],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4909,"children":4910},{"style":1040},[4911],{"type":998,"value":1391},{"type":993,"tag":1034,"props":4913,"children":4914},{"style":1090},[4915],{"type":998,"value":4916},"\"Invalid JSON in ",{"type":993,"tag":1034,"props":4918,"children":4919},{"style":1123},[4920],{"type":998,"value":1401},{"type":993,"tag":1034,"props":4922,"children":4923},{"style":1046},[4924],{"type":998,"value":4546},{"type":993,"tag":1034,"props":4926,"children":4927},{"style":1123},[4928],{"type":998,"value":1421},{"type":993,"tag":1034,"props":4930,"children":4931},{"style":1090},[4932],{"type":998,"value":1098},{"type":993,"tag":1034,"props":4934,"children":4935},{"style":1123},[4936],{"type":998,"value":1401},{"type":993,"tag":1034,"props":4938,"children":4939},{"style":1046},[4940],{"type":998,"value":4622},{"type":993,"tag":1034,"props":4942,"children":4943},{"style":1123},[4944],{"type":998,"value":1421},{"type":993,"tag":1034,"props":4946,"children":4947},{"style":1090},[4948],{"type":998,"value":1349},{"type":993,"tag":1034,"props":4950,"children":4951},{"style":1046},[4952],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4954,"children":4955},{"class":1036,"line":265},[4956,4960],{"type":993,"tag":1034,"props":4957,"children":4958},{"style":1040},[4959],{"type":998,"value":3948},{"type":993,"tag":1034,"props":4961,"children":4962},{"style":1123},[4963],{"type":998,"value":4755},{"type":993,"tag":1034,"props":4965,"children":4966},{"class":1036,"line":274},[4967,4971,4975,4979],{"type":993,"tag":1034,"props":4968,"children":4969},{"style":1040},[4970],{"type":998,"value":4578},{"type":993,"tag":1034,"props":4972,"children":4973},{"style":1123},[4974],{"type":998,"value":4583},{"type":993,"tag":1034,"props":4976,"children":4977},{"style":1040},[4978],{"type":998,"value":4588},{"type":993,"tag":1034,"props":4980,"children":4981},{"style":1046},[4982],{"type":998,"value":4593},{"type":993,"tag":1034,"props":4984,"children":4985},{"class":1036,"line":284},[4986,4990,4994,4998,5003,5007,5011,5015,5019],{"type":993,"tag":1034,"props":4987,"children":4988},{"style":1123},[4989],{"type":998,"value":4524},{"type":993,"tag":1034,"props":4991,"children":4992},{"style":1046},[4993],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4995,"children":4996},{"style":1040},[4997],{"type":998,"value":1391},{"type":993,"tag":1034,"props":4999,"children":5000},{"style":1090},[5001],{"type":998,"value":5002},"\"Error loading preferences: ",{"type":993,"tag":1034,"props":5004,"children":5005},{"style":1123},[5006],{"type":998,"value":1401},{"type":993,"tag":1034,"props":5008,"children":5009},{"style":1046},[5010],{"type":998,"value":4622},{"type":993,"tag":1034,"props":5012,"children":5013},{"style":1123},[5014],{"type":998,"value":1421},{"type":993,"tag":1034,"props":5016,"children":5017},{"style":1090},[5018],{"type":998,"value":1349},{"type":993,"tag":1034,"props":5020,"children":5021},{"style":1046},[5022],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5024,"children":5025},{"class":1036,"line":293},[5026,5030],{"type":993,"tag":1034,"props":5027,"children":5028},{"style":1040},[5029],{"type":998,"value":3948},{"type":993,"tag":1034,"props":5031,"children":5032},{"style":1123},[5033],{"type":998,"value":4755},{"type":993,"tag":1034,"props":5035,"children":5036},{"class":1036,"line":302},[5037],{"type":993,"tag":1034,"props":5038,"children":5039},{"emptyLinePlaceholder":13},[5040],{"type":998,"value":1057},{"type":993,"tag":1034,"props":5042,"children":5043},{"class":1036,"line":311},[5044],{"type":993,"tag":1034,"props":5045,"children":5046},{"style":1063},[5047],{"type":998,"value":5048},"# Example usage\n",{"type":993,"tag":1034,"props":5050,"children":5051},{"class":1036,"line":320},[5052,5057,5061],{"type":993,"tag":1034,"props":5053,"children":5054},{"style":1046},[5055],{"type":998,"value":5056},"default_prefs ",{"type":993,"tag":1034,"props":5058,"children":5059},{"style":1040},[5060],{"type":998,"value":1079},{"type":993,"tag":1034,"props":5062,"children":5063},{"style":1046},[5064],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5066,"children":5067},{"class":1036,"line":329},[5068,5073,5077,5082],{"type":993,"tag":1034,"props":5069,"children":5070},{"style":1090},[5071],{"type":998,"value":5072},"    \"theme\"",{"type":993,"tag":1034,"props":5074,"children":5075},{"style":1046},[5076],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5078,"children":5079},{"style":1090},[5080],{"type":998,"value":5081},"\"dark\"",{"type":993,"tag":1034,"props":5083,"children":5084},{"style":1046},[5085],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5087,"children":5088},{"class":1036,"line":338},[5089,5094,5098,5103],{"type":993,"tag":1034,"props":5090,"children":5091},{"style":1090},[5092],{"type":998,"value":5093},"    \"language\"",{"type":993,"tag":1034,"props":5095,"children":5096},{"style":1046},[5097],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5099,"children":5100},{"style":1090},[5101],{"type":998,"value":5102},"\"en\"",{"type":993,"tag":1034,"props":5104,"children":5105},{"style":1046},[5106],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5108,"children":5109},{"class":1036,"line":347},[5110,5115,5119,5123],{"type":993,"tag":1034,"props":5111,"children":5112},{"style":1090},[5113],{"type":998,"value":5114},"    \"notifications\"",{"type":993,"tag":1034,"props":5116,"children":5117},{"style":1046},[5118],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5120,"children":5121},{"style":1123},[5122],{"type":998,"value":1189},{"type":993,"tag":1034,"props":5124,"children":5125},{"style":1046},[5126],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5128,"children":5129},{"class":1036,"line":356},[5130,5135,5139,5143],{"type":993,"tag":1034,"props":5131,"children":5132},{"style":1090},[5133],{"type":998,"value":5134},"    \"auto_save\"",{"type":993,"tag":1034,"props":5136,"children":5137},{"style":1046},[5138],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5140,"children":5141},{"style":1123},[5142],{"type":998,"value":1189},{"type":993,"tag":1034,"props":5144,"children":5145},{"style":1046},[5146],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5148,"children":5149},{"class":1036,"line":365},[5150,5155],{"type":993,"tag":1034,"props":5151,"children":5152},{"style":1090},[5153],{"type":998,"value":5154},"    \"recent_files\"",{"type":993,"tag":1034,"props":5156,"children":5157},{"style":1046},[5158],{"type":998,"value":5159},": []\n",{"type":993,"tag":1034,"props":5161,"children":5162},{"class":1036,"line":374},[5163],{"type":993,"tag":1034,"props":5164,"children":5165},{"style":1046},[5166],{"type":998,"value":1218},{"type":993,"tag":1034,"props":5168,"children":5169},{"class":1036,"line":384},[5170],{"type":993,"tag":1034,"props":5171,"children":5172},{"emptyLinePlaceholder":13},[5173],{"type":998,"value":1057},{"type":993,"tag":1034,"props":5175,"children":5176},{"class":1036,"line":393},[5177],{"type":993,"tag":1034,"props":5178,"children":5179},{"style":1063},[5180],{"type":998,"value":5181},"# Save preferences\n",{"type":993,"tag":1034,"props":5183,"children":5184},{"class":1036,"line":402},[5185],{"type":993,"tag":1034,"props":5186,"children":5187},{"style":1046},[5188],{"type":998,"value":5189},"save_user_preferences(default_prefs)\n",{"type":993,"tag":1034,"props":5191,"children":5192},{"class":1036,"line":411},[5193],{"type":993,"tag":1034,"props":5194,"children":5195},{"emptyLinePlaceholder":13},[5196],{"type":998,"value":1057},{"type":993,"tag":1034,"props":5198,"children":5199},{"class":1036,"line":420},[5200],{"type":993,"tag":1034,"props":5201,"children":5202},{"style":1063},[5203],{"type":998,"value":5204},"# Load preferences\n",{"type":993,"tag":1034,"props":5206,"children":5207},{"class":1036,"line":429},[5208,5213,5217],{"type":993,"tag":1034,"props":5209,"children":5210},{"style":1046},[5211],{"type":998,"value":5212},"loaded_prefs ",{"type":993,"tag":1034,"props":5214,"children":5215},{"style":1040},[5216],{"type":998,"value":1079},{"type":993,"tag":1034,"props":5218,"children":5219},{"style":1046},[5220],{"type":998,"value":5221}," load_user_preferences()\n",{"type":993,"tag":1034,"props":5223,"children":5224},{"class":1036,"line":438},[5225,5230],{"type":993,"tag":1034,"props":5226,"children":5227},{"style":1040},[5228],{"type":998,"value":5229},"if",{"type":993,"tag":1034,"props":5231,"children":5232},{"style":1046},[5233],{"type":998,"value":5234}," loaded_prefs:\n",{"type":993,"tag":1034,"props":5236,"children":5237},{"class":1036,"line":447},[5238,5243,5247,5252],{"type":993,"tag":1034,"props":5239,"children":5240},{"style":1123},[5241],{"type":998,"value":5242},"    print",{"type":993,"tag":1034,"props":5244,"children":5245},{"style":1046},[5246],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5248,"children":5249},{"style":1090},[5250],{"type":998,"value":5251},"\"Current preferences:\"",{"type":993,"tag":1034,"props":5253,"children":5254},{"style":1046},[5255],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5257,"children":5258},{"class":1036,"line":457},[5259,5264,5269,5274],{"type":993,"tag":1034,"props":5260,"children":5261},{"style":1040},[5262],{"type":998,"value":5263},"    for",{"type":993,"tag":1034,"props":5265,"children":5266},{"style":1046},[5267],{"type":998,"value":5268}," key, value ",{"type":993,"tag":1034,"props":5270,"children":5271},{"style":1040},[5272],{"type":998,"value":5273},"in",{"type":993,"tag":1034,"props":5275,"children":5276},{"style":1046},[5277],{"type":998,"value":5278}," loaded_prefs.items():\n",{"type":993,"tag":1034,"props":5280,"children":5281},{"class":1036,"line":466},[5282,5286,5290,5294,5299,5303,5308,5312,5316,5320,5325,5329,5333],{"type":993,"tag":1034,"props":5283,"children":5284},{"style":1123},[5285],{"type":998,"value":4524},{"type":993,"tag":1034,"props":5287,"children":5288},{"style":1046},[5289],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5291,"children":5292},{"style":1040},[5293],{"type":998,"value":1391},{"type":993,"tag":1034,"props":5295,"children":5296},{"style":1090},[5297],{"type":998,"value":5298},"\"  ",{"type":993,"tag":1034,"props":5300,"children":5301},{"style":1123},[5302],{"type":998,"value":1401},{"type":993,"tag":1034,"props":5304,"children":5305},{"style":1046},[5306],{"type":998,"value":5307},"key",{"type":993,"tag":1034,"props":5309,"children":5310},{"style":1123},[5311],{"type":998,"value":1421},{"type":993,"tag":1034,"props":5313,"children":5314},{"style":1090},[5315],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5317,"children":5318},{"style":1123},[5319],{"type":998,"value":1401},{"type":993,"tag":1034,"props":5321,"children":5322},{"style":1046},[5323],{"type":998,"value":5324},"value",{"type":993,"tag":1034,"props":5326,"children":5327},{"style":1123},[5328],{"type":998,"value":1421},{"type":993,"tag":1034,"props":5330,"children":5331},{"style":1090},[5332],{"type":998,"value":1349},{"type":993,"tag":1034,"props":5334,"children":5335},{"style":1046},[5336],{"type":998,"value":1265},{"type":993,"tag":2051,"props":5338,"children":5340},{"id":5339},"configuration-management",[5341],{"type":998,"value":5342},"Configuration Management",{"type":993,"tag":1001,"props":5344,"children":5345},{},[5346],{"type":998,"value":5347},"JSON configuration files provide flexible, human-readable application settings.",{"type":993,"tag":1021,"props":5349,"children":5350},{},[5351],{"type":993,"tag":1025,"props":5352,"children":5354},{"className":1027,"code":5353,"language":6,"meta":8,"style":8},"import json\n\nclass ConfigManager:\n    \"\"\"Manage application configuration with JSON\"\"\"\n    \n    def __init__(self, config_file=\"app_config.json\"):\n        self.config_file = config_file\n        self.config = self.load_config()\n    \n    def load_config(self):\n        \"\"\"Load configuration from file or create default\"\"\"\n        try:\n            with open(self.config_file, 'r') as file:\n                return json.load(file)\n        except FileNotFoundError:\n            return self.create_default_config()\n        except json.JSONDecodeError:\n            print(\"Invalid JSON in config file. Using defaults.\")\n            return self.create_default_config()\n    \n    def create_default_config(self):\n        \"\"\"Create default configuration\"\"\"\n        default_config = {\n            \"app\": {\n                \"name\": \"MyApp\",\n                \"version\": \"1.0.0\",\n                \"debug\": False\n            },\n            \"database\": {\n                \"host\": \"localhost\",\n                \"port\": 5432,\n                \"name\": \"myapp_db\"\n            },\n            \"features\": {\n                \"enable_logging\": True,\n                \"cache_timeout\": 300,\n                \"max_file_size\": 10485760  # 10MB\n            }\n        }\n        self.save_config(default_config)\n        return default_config\n    \n    def save_config(self, config=None):\n        \"\"\"Save configuration to file\"\"\"\n        if config is None:\n            config = self.config\n        \n        try:\n            with open(self.config_file, 'w') as file:\n                json.dump(config, file, indent=2)\n            print(f\"Configuration saved to {self.config_file}\")\n        except Exception as e:\n            print(f\"Error saving configuration: {e}\")\n    \n    def get(self, key_path, default=None):\n        \"\"\"Get configuration value using dot notation\"\"\"\n        keys = key_path.split('.')\n        value = self.config\n        \n        for key in keys:\n            if isinstance(value, dict) and key in value:\n                value = value[key]\n            else:\n                return default\n        return value\n    \n    def set(self, key_path, value):\n        \"\"\"Set configuration value using dot notation\"\"\"\n        keys = key_path.split('.')\n        config = self.config\n        \n        for key in keys[:-1]:\n            if key not in config:\n                config[key] = {}\n            config = config[key]\n        \n        config[keys[-1]] = value\n        self.save_config()\n\n# Usage example\nconfig_manager = ConfigManager()\n\nprint(\"Configuration Settings:\")\nprint(f\"App name: {config_manager.get('app.name')}\")\nprint(f\"Debug mode: {config_manager.get('app.debug')}\")\nprint(f\"Database port: {config_manager.get('database.port')}\")\nprint(f\"Cache timeout: {config_manager.get('features.cache_timeout')}\")\n\n# Update a setting\nconfig_manager.set('app.debug', True)\nprint(f\"Debug mode updated: {config_manager.get('app.debug')}\")\n",[5355],{"type":993,"tag":1007,"props":5356,"children":5357},{"__ignoreMap":8},[5358,5369,5376,5392,5400,5407,5436,5457,5483,5490,5507,5515,5527,5573,5593,5610,5626,5638,5658,5673,5680,5696,5704,5720,5732,5753,5774,5791,5799,5811,5831,5851,5867,5874,5886,5906,5927,5949,5957,5965,5977,5989,5996,6025,6033,6059,6080,6087,6098,6141,6173,6215,6234,6274,6281,6310,6318,6344,6364,6371,6393,6437,6454,6466,6478,6490,6497,6514,6522,6545,6565,6572,6606,6632,6649,6665,6672,6701,6713,6720,6728,6745,6752,6772,6824,6873,6922,6971,6978,6986,7010],{"type":993,"tag":1034,"props":5359,"children":5360},{"class":1036,"line":12},[5361,5365],{"type":993,"tag":1034,"props":5362,"children":5363},{"style":1040},[5364],{"type":998,"value":1043},{"type":993,"tag":1034,"props":5366,"children":5367},{"style":1046},[5368],{"type":998,"value":1049},{"type":993,"tag":1034,"props":5370,"children":5371},{"class":1036,"line":27},[5372],{"type":993,"tag":1034,"props":5373,"children":5374},{"emptyLinePlaceholder":13},[5375],{"type":998,"value":1057},{"type":993,"tag":1034,"props":5377,"children":5378},{"class":1036,"line":36},[5379,5383,5388],{"type":993,"tag":1034,"props":5380,"children":5381},{"style":1040},[5382],{"type":998,"value":3702},{"type":993,"tag":1034,"props":5384,"children":5385},{"style":3705},[5386],{"type":998,"value":5387}," ConfigManager",{"type":993,"tag":1034,"props":5389,"children":5390},{"style":1046},[5391],{"type":998,"value":1721},{"type":993,"tag":1034,"props":5393,"children":5394},{"class":1036,"line":45},[5395],{"type":993,"tag":1034,"props":5396,"children":5397},{"style":1090},[5398],{"type":998,"value":5399},"    \"\"\"Manage application configuration with JSON\"\"\"\n",{"type":993,"tag":1034,"props":5401,"children":5402},{"class":1036,"line":54},[5403],{"type":993,"tag":1034,"props":5404,"children":5405},{"style":1046},[5406],{"type":998,"value":3747},{"type":993,"tag":1034,"props":5408,"children":5409},{"class":1036,"line":63},[5410,5414,5418,5423,5427,5432],{"type":993,"tag":1034,"props":5411,"children":5412},{"style":1040},[5413],{"type":998,"value":3755},{"type":993,"tag":1034,"props":5415,"children":5416},{"style":1123},[5417],{"type":998,"value":3993},{"type":993,"tag":1034,"props":5419,"children":5420},{"style":1046},[5421],{"type":998,"value":5422},"(self, config_file",{"type":993,"tag":1034,"props":5424,"children":5425},{"style":1040},[5426],{"type":998,"value":1079},{"type":993,"tag":1034,"props":5428,"children":5429},{"style":1090},[5430],{"type":998,"value":5431},"\"app_config.json\"",{"type":993,"tag":1034,"props":5433,"children":5434},{"style":1046},[5435],{"type":998,"value":3731},{"type":993,"tag":1034,"props":5437,"children":5438},{"class":1036,"line":72},[5439,5443,5448,5452],{"type":993,"tag":1034,"props":5440,"children":5441},{"style":1123},[5442],{"type":998,"value":4006},{"type":993,"tag":1034,"props":5444,"children":5445},{"style":1046},[5446],{"type":998,"value":5447},".config_file ",{"type":993,"tag":1034,"props":5449,"children":5450},{"style":1040},[5451],{"type":998,"value":1079},{"type":993,"tag":1034,"props":5453,"children":5454},{"style":1046},[5455],{"type":998,"value":5456}," config_file\n",{"type":993,"tag":1034,"props":5458,"children":5459},{"class":1036,"line":81},[5460,5464,5469,5473,5478],{"type":993,"tag":1034,"props":5461,"children":5462},{"style":1123},[5463],{"type":998,"value":4006},{"type":993,"tag":1034,"props":5465,"children":5466},{"style":1046},[5467],{"type":998,"value":5468},".config ",{"type":993,"tag":1034,"props":5470,"children":5471},{"style":1040},[5472],{"type":998,"value":1079},{"type":993,"tag":1034,"props":5474,"children":5475},{"style":1123},[5476],{"type":998,"value":5477}," self",{"type":993,"tag":1034,"props":5479,"children":5480},{"style":1046},[5481],{"type":998,"value":5482},".load_config()\n",{"type":993,"tag":1034,"props":5484,"children":5485},{"class":1036,"line":91},[5486],{"type":993,"tag":1034,"props":5487,"children":5488},{"style":1046},[5489],{"type":998,"value":3747},{"type":993,"tag":1034,"props":5491,"children":5492},{"class":1036,"line":100},[5493,5497,5502],{"type":993,"tag":1034,"props":5494,"children":5495},{"style":1040},[5496],{"type":998,"value":3755},{"type":993,"tag":1034,"props":5498,"children":5499},{"style":3705},[5500],{"type":998,"value":5501}," load_config",{"type":993,"tag":1034,"props":5503,"children":5504},{"style":1046},[5505],{"type":998,"value":5506},"(self):\n",{"type":993,"tag":1034,"props":5508,"children":5509},{"class":1036,"line":109},[5510],{"type":993,"tag":1034,"props":5511,"children":5512},{"style":1090},[5513],{"type":998,"value":5514},"        \"\"\"Load configuration from file or create default\"\"\"\n",{"type":993,"tag":1034,"props":5516,"children":5517},{"class":1036,"line":118},[5518,5523],{"type":993,"tag":1034,"props":5519,"children":5520},{"style":1040},[5521],{"type":998,"value":5522},"        try",{"type":993,"tag":1034,"props":5524,"children":5525},{"style":1046},[5526],{"type":998,"value":1721},{"type":993,"tag":1034,"props":5528,"children":5529},{"class":1036,"line":127},[5530,5535,5539,5543,5548,5553,5557,5561,5565,5569],{"type":993,"tag":1034,"props":5531,"children":5532},{"style":1040},[5533],{"type":998,"value":5534},"            with",{"type":993,"tag":1034,"props":5536,"children":5537},{"style":1123},[5538],{"type":998,"value":1682},{"type":993,"tag":1034,"props":5540,"children":5541},{"style":1046},[5542],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5544,"children":5545},{"style":1123},[5546],{"type":998,"value":5547},"self",{"type":993,"tag":1034,"props":5549,"children":5550},{"style":1046},[5551],{"type":998,"value":5552},".config_file, ",{"type":993,"tag":1034,"props":5554,"children":5555},{"style":1090},[5556],{"type":998,"value":4783},{"type":993,"tag":1034,"props":5558,"children":5559},{"style":1046},[5560],{"type":998,"value":1705},{"type":993,"tag":1034,"props":5562,"children":5563},{"style":1040},[5564],{"type":998,"value":1710},{"type":993,"tag":1034,"props":5566,"children":5567},{"style":1713},[5568],{"type":998,"value":1716},{"type":993,"tag":1034,"props":5570,"children":5571},{"style":1046},[5572],{"type":998,"value":1721},{"type":993,"tag":1034,"props":5574,"children":5575},{"class":1036,"line":136},[5576,5581,5585,5589],{"type":993,"tag":1034,"props":5577,"children":5578},{"style":1040},[5579],{"type":998,"value":5580},"                return",{"type":993,"tag":1034,"props":5582,"children":5583},{"style":1046},[5584],{"type":998,"value":4816},{"type":993,"tag":1034,"props":5586,"children":5587},{"style":1713},[5588],{"type":998,"value":1734},{"type":993,"tag":1034,"props":5590,"children":5591},{"style":1046},[5592],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5594,"children":5595},{"class":1036,"line":146},[5596,5601,5606],{"type":993,"tag":1034,"props":5597,"children":5598},{"style":1040},[5599],{"type":998,"value":5600},"        except",{"type":993,"tag":1034,"props":5602,"children":5603},{"style":1123},[5604],{"type":998,"value":5605}," FileNotFoundError",{"type":993,"tag":1034,"props":5607,"children":5608},{"style":1046},[5609],{"type":998,"value":1721},{"type":993,"tag":1034,"props":5611,"children":5612},{"class":1036,"line":155},[5613,5617,5621],{"type":993,"tag":1034,"props":5614,"children":5615},{"style":1040},[5616],{"type":998,"value":3791},{"type":993,"tag":1034,"props":5618,"children":5619},{"style":1123},[5620],{"type":998,"value":5477},{"type":993,"tag":1034,"props":5622,"children":5623},{"style":1046},[5624],{"type":998,"value":5625},".create_default_config()\n",{"type":993,"tag":1034,"props":5627,"children":5628},{"class":1036,"line":164},[5629,5633],{"type":993,"tag":1034,"props":5630,"children":5631},{"style":1040},[5632],{"type":998,"value":5600},{"type":993,"tag":1034,"props":5634,"children":5635},{"style":1046},[5636],{"type":998,"value":5637}," json.JSONDecodeError:\n",{"type":993,"tag":1034,"props":5639,"children":5640},{"class":1036,"line":173},[5641,5645,5649,5654],{"type":993,"tag":1034,"props":5642,"children":5643},{"style":1123},[5644],{"type":998,"value":4726},{"type":993,"tag":1034,"props":5646,"children":5647},{"style":1046},[5648],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5650,"children":5651},{"style":1090},[5652],{"type":998,"value":5653},"\"Invalid JSON in config file. Using defaults.\"",{"type":993,"tag":1034,"props":5655,"children":5656},{"style":1046},[5657],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5659,"children":5660},{"class":1036,"line":182},[5661,5665,5669],{"type":993,"tag":1034,"props":5662,"children":5663},{"style":1040},[5664],{"type":998,"value":3791},{"type":993,"tag":1034,"props":5666,"children":5667},{"style":1123},[5668],{"type":998,"value":5477},{"type":993,"tag":1034,"props":5670,"children":5671},{"style":1046},[5672],{"type":998,"value":5625},{"type":993,"tag":1034,"props":5674,"children":5675},{"class":1036,"line":191},[5676],{"type":993,"tag":1034,"props":5677,"children":5678},{"style":1046},[5679],{"type":998,"value":3747},{"type":993,"tag":1034,"props":5681,"children":5682},{"class":1036,"line":201},[5683,5687,5692],{"type":993,"tag":1034,"props":5684,"children":5685},{"style":1040},[5686],{"type":998,"value":3755},{"type":993,"tag":1034,"props":5688,"children":5689},{"style":3705},[5690],{"type":998,"value":5691}," create_default_config",{"type":993,"tag":1034,"props":5693,"children":5694},{"style":1046},[5695],{"type":998,"value":5506},{"type":993,"tag":1034,"props":5697,"children":5698},{"class":1036,"line":210},[5699],{"type":993,"tag":1034,"props":5700,"children":5701},{"style":1090},[5702],{"type":998,"value":5703},"        \"\"\"Create default configuration\"\"\"\n",{"type":993,"tag":1034,"props":5705,"children":5706},{"class":1036,"line":219},[5707,5712,5716],{"type":993,"tag":1034,"props":5708,"children":5709},{"style":1046},[5710],{"type":998,"value":5711},"        default_config ",{"type":993,"tag":1034,"props":5713,"children":5714},{"style":1040},[5715],{"type":998,"value":1079},{"type":993,"tag":1034,"props":5717,"children":5718},{"style":1046},[5719],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5721,"children":5722},{"class":1036,"line":228},[5723,5728],{"type":993,"tag":1034,"props":5724,"children":5725},{"style":1090},[5726],{"type":998,"value":5727},"            \"app\"",{"type":993,"tag":1034,"props":5729,"children":5730},{"style":1046},[5731],{"type":998,"value":1522},{"type":993,"tag":1034,"props":5733,"children":5734},{"class":1036,"line":238},[5735,5740,5744,5749],{"type":993,"tag":1034,"props":5736,"children":5737},{"style":1090},[5738],{"type":998,"value":5739},"                \"name\"",{"type":993,"tag":1034,"props":5741,"children":5742},{"style":1046},[5743],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5745,"children":5746},{"style":1090},[5747],{"type":998,"value":5748},"\"MyApp\"",{"type":993,"tag":1034,"props":5750,"children":5751},{"style":1046},[5752],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5754,"children":5755},{"class":1036,"line":247},[5756,5761,5765,5770],{"type":993,"tag":1034,"props":5757,"children":5758},{"style":1090},[5759],{"type":998,"value":5760},"                \"version\"",{"type":993,"tag":1034,"props":5762,"children":5763},{"style":1046},[5764],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5766,"children":5767},{"style":1090},[5768],{"type":998,"value":5769},"\"1.0.0\"",{"type":993,"tag":1034,"props":5771,"children":5772},{"style":1046},[5773],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5775,"children":5776},{"class":1036,"line":256},[5777,5782,5786],{"type":993,"tag":1034,"props":5778,"children":5779},{"style":1090},[5780],{"type":998,"value":5781},"                \"debug\"",{"type":993,"tag":1034,"props":5783,"children":5784},{"style":1046},[5785],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5787,"children":5788},{"style":1123},[5789],{"type":998,"value":5790},"False\n",{"type":993,"tag":1034,"props":5792,"children":5793},{"class":1036,"line":265},[5794],{"type":993,"tag":1034,"props":5795,"children":5796},{"style":1046},[5797],{"type":998,"value":5798},"            },\n",{"type":993,"tag":1034,"props":5800,"children":5801},{"class":1036,"line":274},[5802,5807],{"type":993,"tag":1034,"props":5803,"children":5804},{"style":1090},[5805],{"type":998,"value":5806},"            \"database\"",{"type":993,"tag":1034,"props":5808,"children":5809},{"style":1046},[5810],{"type":998,"value":1522},{"type":993,"tag":1034,"props":5812,"children":5813},{"class":1036,"line":284},[5814,5819,5823,5827],{"type":993,"tag":1034,"props":5815,"children":5816},{"style":1090},[5817],{"type":998,"value":5818},"                \"host\"",{"type":993,"tag":1034,"props":5820,"children":5821},{"style":1046},[5822],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5824,"children":5825},{"style":1090},[5826],{"type":998,"value":1539},{"type":993,"tag":1034,"props":5828,"children":5829},{"style":1046},[5830],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5832,"children":5833},{"class":1036,"line":293},[5834,5839,5843,5847],{"type":993,"tag":1034,"props":5835,"children":5836},{"style":1090},[5837],{"type":998,"value":5838},"                \"port\"",{"type":993,"tag":1034,"props":5840,"children":5841},{"style":1046},[5842],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5844,"children":5845},{"style":1123},[5846],{"type":998,"value":1560},{"type":993,"tag":1034,"props":5848,"children":5849},{"style":1046},[5850],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5852,"children":5853},{"class":1036,"line":302},[5854,5858,5862],{"type":993,"tag":1034,"props":5855,"children":5856},{"style":1090},[5857],{"type":998,"value":5739},{"type":993,"tag":1034,"props":5859,"children":5860},{"style":1046},[5861],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5863,"children":5864},{"style":1090},[5865],{"type":998,"value":5866},"\"myapp_db\"\n",{"type":993,"tag":1034,"props":5868,"children":5869},{"class":1036,"line":311},[5870],{"type":993,"tag":1034,"props":5871,"children":5872},{"style":1046},[5873],{"type":998,"value":5798},{"type":993,"tag":1034,"props":5875,"children":5876},{"class":1036,"line":320},[5877,5882],{"type":993,"tag":1034,"props":5878,"children":5879},{"style":1090},[5880],{"type":998,"value":5881},"            \"features\"",{"type":993,"tag":1034,"props":5883,"children":5884},{"style":1046},[5885],{"type":998,"value":1522},{"type":993,"tag":1034,"props":5887,"children":5888},{"class":1036,"line":329},[5889,5894,5898,5902],{"type":993,"tag":1034,"props":5890,"children":5891},{"style":1090},[5892],{"type":998,"value":5893},"                \"enable_logging\"",{"type":993,"tag":1034,"props":5895,"children":5896},{"style":1046},[5897],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5899,"children":5900},{"style":1123},[5901],{"type":998,"value":1189},{"type":993,"tag":1034,"props":5903,"children":5904},{"style":1046},[5905],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5907,"children":5908},{"class":1036,"line":338},[5909,5914,5918,5923],{"type":993,"tag":1034,"props":5910,"children":5911},{"style":1090},[5912],{"type":998,"value":5913},"                \"cache_timeout\"",{"type":993,"tag":1034,"props":5915,"children":5916},{"style":1046},[5917],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5919,"children":5920},{"style":1123},[5921],{"type":998,"value":5922},"300",{"type":993,"tag":1034,"props":5924,"children":5925},{"style":1046},[5926],{"type":998,"value":1108},{"type":993,"tag":1034,"props":5928,"children":5929},{"class":1036,"line":347},[5930,5935,5939,5944],{"type":993,"tag":1034,"props":5931,"children":5932},{"style":1090},[5933],{"type":998,"value":5934},"                \"max_file_size\"",{"type":993,"tag":1034,"props":5936,"children":5937},{"style":1046},[5938],{"type":998,"value":1098},{"type":993,"tag":1034,"props":5940,"children":5941},{"style":1123},[5942],{"type":998,"value":5943},"10485760",{"type":993,"tag":1034,"props":5945,"children":5946},{"style":1063},[5947],{"type":998,"value":5948},"  # 10MB\n",{"type":993,"tag":1034,"props":5950,"children":5951},{"class":1036,"line":356},[5952],{"type":993,"tag":1034,"props":5953,"children":5954},{"style":1046},[5955],{"type":998,"value":5956},"            }\n",{"type":993,"tag":1034,"props":5958,"children":5959},{"class":1036,"line":365},[5960],{"type":993,"tag":1034,"props":5961,"children":5962},{"style":1046},[5963],{"type":998,"value":5964},"        }\n",{"type":993,"tag":1034,"props":5966,"children":5967},{"class":1036,"line":374},[5968,5972],{"type":993,"tag":1034,"props":5969,"children":5970},{"style":1123},[5971],{"type":998,"value":4006},{"type":993,"tag":1034,"props":5973,"children":5974},{"style":1046},[5975],{"type":998,"value":5976},".save_config(default_config)\n",{"type":993,"tag":1034,"props":5978,"children":5979},{"class":1036,"line":384},[5980,5984],{"type":993,"tag":1034,"props":5981,"children":5982},{"style":1040},[5983],{"type":998,"value":3948},{"type":993,"tag":1034,"props":5985,"children":5986},{"style":1046},[5987],{"type":998,"value":5988}," default_config\n",{"type":993,"tag":1034,"props":5990,"children":5991},{"class":1036,"line":393},[5992],{"type":993,"tag":1034,"props":5993,"children":5994},{"style":1046},[5995],{"type":998,"value":3747},{"type":993,"tag":1034,"props":5997,"children":5998},{"class":1036,"line":402},[5999,6003,6008,6013,6017,6021],{"type":993,"tag":1034,"props":6000,"children":6001},{"style":1040},[6002],{"type":998,"value":3755},{"type":993,"tag":1034,"props":6004,"children":6005},{"style":3705},[6006],{"type":998,"value":6007}," save_config",{"type":993,"tag":1034,"props":6009,"children":6010},{"style":1046},[6011],{"type":998,"value":6012},"(self, config",{"type":993,"tag":1034,"props":6014,"children":6015},{"style":1040},[6016],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6018,"children":6019},{"style":1123},[6020],{"type":998,"value":2243},{"type":993,"tag":1034,"props":6022,"children":6023},{"style":1046},[6024],{"type":998,"value":3731},{"type":993,"tag":1034,"props":6026,"children":6027},{"class":1036,"line":411},[6028],{"type":993,"tag":1034,"props":6029,"children":6030},{"style":1090},[6031],{"type":998,"value":6032},"        \"\"\"Save configuration to file\"\"\"\n",{"type":993,"tag":1034,"props":6034,"children":6035},{"class":1036,"line":420},[6036,6040,6045,6050,6055],{"type":993,"tag":1034,"props":6037,"children":6038},{"style":1040},[6039],{"type":998,"value":3773},{"type":993,"tag":1034,"props":6041,"children":6042},{"style":1046},[6043],{"type":998,"value":6044}," config ",{"type":993,"tag":1034,"props":6046,"children":6047},{"style":1040},[6048],{"type":998,"value":6049},"is",{"type":993,"tag":1034,"props":6051,"children":6052},{"style":1123},[6053],{"type":998,"value":6054}," None",{"type":993,"tag":1034,"props":6056,"children":6057},{"style":1046},[6058],{"type":998,"value":1721},{"type":993,"tag":1034,"props":6060,"children":6061},{"class":1036,"line":429},[6062,6067,6071,6075],{"type":993,"tag":1034,"props":6063,"children":6064},{"style":1046},[6065],{"type":998,"value":6066},"            config ",{"type":993,"tag":1034,"props":6068,"children":6069},{"style":1040},[6070],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6072,"children":6073},{"style":1123},[6074],{"type":998,"value":5477},{"type":993,"tag":1034,"props":6076,"children":6077},{"style":1046},[6078],{"type":998,"value":6079},".config\n",{"type":993,"tag":1034,"props":6081,"children":6082},{"class":1036,"line":438},[6083],{"type":993,"tag":1034,"props":6084,"children":6085},{"style":1046},[6086],{"type":998,"value":4763},{"type":993,"tag":1034,"props":6088,"children":6089},{"class":1036,"line":447},[6090,6094],{"type":993,"tag":1034,"props":6091,"children":6092},{"style":1040},[6093],{"type":998,"value":5522},{"type":993,"tag":1034,"props":6095,"children":6096},{"style":1046},[6097],{"type":998,"value":1721},{"type":993,"tag":1034,"props":6099,"children":6100},{"class":1036,"line":457},[6101,6105,6109,6113,6117,6121,6125,6129,6133,6137],{"type":993,"tag":1034,"props":6102,"children":6103},{"style":1040},[6104],{"type":998,"value":5534},{"type":993,"tag":1034,"props":6106,"children":6107},{"style":1123},[6108],{"type":998,"value":1682},{"type":993,"tag":1034,"props":6110,"children":6111},{"style":1046},[6112],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6114,"children":6115},{"style":1123},[6116],{"type":998,"value":5547},{"type":993,"tag":1034,"props":6118,"children":6119},{"style":1046},[6120],{"type":998,"value":5552},{"type":993,"tag":1034,"props":6122,"children":6123},{"style":1090},[6124],{"type":998,"value":4468},{"type":993,"tag":1034,"props":6126,"children":6127},{"style":1046},[6128],{"type":998,"value":1705},{"type":993,"tag":1034,"props":6130,"children":6131},{"style":1040},[6132],{"type":998,"value":1710},{"type":993,"tag":1034,"props":6134,"children":6135},{"style":1713},[6136],{"type":998,"value":1716},{"type":993,"tag":1034,"props":6138,"children":6139},{"style":1046},[6140],{"type":998,"value":1721},{"type":993,"tag":1034,"props":6142,"children":6143},{"class":1036,"line":466},[6144,6149,6153,6157,6161,6165,6169],{"type":993,"tag":1034,"props":6145,"children":6146},{"style":1046},[6147],{"type":998,"value":6148},"                json.dump(config, ",{"type":993,"tag":1034,"props":6150,"children":6151},{"style":1713},[6152],{"type":998,"value":1734},{"type":993,"tag":1034,"props":6154,"children":6155},{"style":1046},[6156],{"type":998,"value":1153},{"type":993,"tag":1034,"props":6158,"children":6159},{"style":1713},[6160],{"type":998,"value":1743},{"type":993,"tag":1034,"props":6162,"children":6163},{"style":1040},[6164],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6166,"children":6167},{"style":1123},[6168],{"type":998,"value":1752},{"type":993,"tag":1034,"props":6170,"children":6171},{"style":1046},[6172],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6174,"children":6175},{"class":1036,"line":475},[6176,6180,6184,6188,6193,6198,6203,6207,6211],{"type":993,"tag":1034,"props":6177,"children":6178},{"style":1123},[6179],{"type":998,"value":4726},{"type":993,"tag":1034,"props":6181,"children":6182},{"style":1046},[6183],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6185,"children":6186},{"style":1040},[6187],{"type":998,"value":1391},{"type":993,"tag":1034,"props":6189,"children":6190},{"style":1090},[6191],{"type":998,"value":6192},"\"Configuration saved to ",{"type":993,"tag":1034,"props":6194,"children":6195},{"style":1123},[6196],{"type":998,"value":6197},"{self",{"type":993,"tag":1034,"props":6199,"children":6200},{"style":1046},[6201],{"type":998,"value":6202},".config_file",{"type":993,"tag":1034,"props":6204,"children":6205},{"style":1123},[6206],{"type":998,"value":1421},{"type":993,"tag":1034,"props":6208,"children":6209},{"style":1090},[6210],{"type":998,"value":1349},{"type":993,"tag":1034,"props":6212,"children":6213},{"style":1046},[6214],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6216,"children":6217},{"class":1036,"line":484},[6218,6222,6226,6230],{"type":993,"tag":1034,"props":6219,"children":6220},{"style":1040},[6221],{"type":998,"value":5600},{"type":993,"tag":1034,"props":6223,"children":6224},{"style":1123},[6225],{"type":998,"value":4583},{"type":993,"tag":1034,"props":6227,"children":6228},{"style":1040},[6229],{"type":998,"value":4588},{"type":993,"tag":1034,"props":6231,"children":6232},{"style":1046},[6233],{"type":998,"value":4593},{"type":993,"tag":1034,"props":6235,"children":6236},{"class":1036,"line":493},[6237,6241,6245,6249,6254,6258,6262,6266,6270],{"type":993,"tag":1034,"props":6238,"children":6239},{"style":1123},[6240],{"type":998,"value":4726},{"type":993,"tag":1034,"props":6242,"children":6243},{"style":1046},[6244],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6246,"children":6247},{"style":1040},[6248],{"type":998,"value":1391},{"type":993,"tag":1034,"props":6250,"children":6251},{"style":1090},[6252],{"type":998,"value":6253},"\"Error saving configuration: ",{"type":993,"tag":1034,"props":6255,"children":6256},{"style":1123},[6257],{"type":998,"value":1401},{"type":993,"tag":1034,"props":6259,"children":6260},{"style":1046},[6261],{"type":998,"value":4622},{"type":993,"tag":1034,"props":6263,"children":6264},{"style":1123},[6265],{"type":998,"value":1421},{"type":993,"tag":1034,"props":6267,"children":6268},{"style":1090},[6269],{"type":998,"value":1349},{"type":993,"tag":1034,"props":6271,"children":6272},{"style":1046},[6273],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6275,"children":6276},{"class":1036,"line":502},[6277],{"type":993,"tag":1034,"props":6278,"children":6279},{"style":1046},[6280],{"type":998,"value":3747},{"type":993,"tag":1034,"props":6282,"children":6283},{"class":1036,"line":511},[6284,6288,6293,6298,6302,6306],{"type":993,"tag":1034,"props":6285,"children":6286},{"style":1040},[6287],{"type":998,"value":3755},{"type":993,"tag":1034,"props":6289,"children":6290},{"style":3705},[6291],{"type":998,"value":6292}," get",{"type":993,"tag":1034,"props":6294,"children":6295},{"style":1046},[6296],{"type":998,"value":6297},"(self, key_path, default",{"type":993,"tag":1034,"props":6299,"children":6300},{"style":1040},[6301],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6303,"children":6304},{"style":1123},[6305],{"type":998,"value":2243},{"type":993,"tag":1034,"props":6307,"children":6308},{"style":1046},[6309],{"type":998,"value":3731},{"type":993,"tag":1034,"props":6311,"children":6312},{"class":1036,"line":520},[6313],{"type":993,"tag":1034,"props":6314,"children":6315},{"style":1090},[6316],{"type":998,"value":6317},"        \"\"\"Get configuration value using dot notation\"\"\"\n",{"type":993,"tag":1034,"props":6319,"children":6320},{"class":1036,"line":530},[6321,6326,6330,6335,6340],{"type":993,"tag":1034,"props":6322,"children":6323},{"style":1046},[6324],{"type":998,"value":6325},"        keys ",{"type":993,"tag":1034,"props":6327,"children":6328},{"style":1040},[6329],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6331,"children":6332},{"style":1046},[6333],{"type":998,"value":6334}," key_path.split(",{"type":993,"tag":1034,"props":6336,"children":6337},{"style":1090},[6338],{"type":998,"value":6339},"'.'",{"type":993,"tag":1034,"props":6341,"children":6342},{"style":1046},[6343],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6345,"children":6346},{"class":1036,"line":539},[6347,6352,6356,6360],{"type":993,"tag":1034,"props":6348,"children":6349},{"style":1046},[6350],{"type":998,"value":6351},"        value ",{"type":993,"tag":1034,"props":6353,"children":6354},{"style":1040},[6355],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6357,"children":6358},{"style":1123},[6359],{"type":998,"value":5477},{"type":993,"tag":1034,"props":6361,"children":6362},{"style":1046},[6363],{"type":998,"value":6079},{"type":993,"tag":1034,"props":6365,"children":6366},{"class":1036,"line":548},[6367],{"type":993,"tag":1034,"props":6368,"children":6369},{"style":1046},[6370],{"type":998,"value":4763},{"type":993,"tag":1034,"props":6372,"children":6373},{"class":1036,"line":557},[6374,6379,6384,6388],{"type":993,"tag":1034,"props":6375,"children":6376},{"style":1040},[6377],{"type":998,"value":6378},"        for",{"type":993,"tag":1034,"props":6380,"children":6381},{"style":1046},[6382],{"type":998,"value":6383}," key ",{"type":993,"tag":1034,"props":6385,"children":6386},{"style":1040},[6387],{"type":998,"value":5273},{"type":993,"tag":1034,"props":6389,"children":6390},{"style":1046},[6391],{"type":998,"value":6392}," keys:\n",{"type":993,"tag":1034,"props":6394,"children":6395},{"class":1036,"line":566},[6396,6401,6405,6410,6415,6419,6424,6428,6432],{"type":993,"tag":1034,"props":6397,"children":6398},{"style":1040},[6399],{"type":998,"value":6400},"            if",{"type":993,"tag":1034,"props":6402,"children":6403},{"style":1123},[6404],{"type":998,"value":3778},{"type":993,"tag":1034,"props":6406,"children":6407},{"style":1046},[6408],{"type":998,"value":6409},"(value, ",{"type":993,"tag":1034,"props":6411,"children":6412},{"style":1123},[6413],{"type":998,"value":6414},"dict",{"type":993,"tag":1034,"props":6416,"children":6417},{"style":1046},[6418],{"type":998,"value":1705},{"type":993,"tag":1034,"props":6420,"children":6421},{"style":1040},[6422],{"type":998,"value":6423},"and",{"type":993,"tag":1034,"props":6425,"children":6426},{"style":1046},[6427],{"type":998,"value":6383},{"type":993,"tag":1034,"props":6429,"children":6430},{"style":1040},[6431],{"type":998,"value":5273},{"type":993,"tag":1034,"props":6433,"children":6434},{"style":1046},[6435],{"type":998,"value":6436}," value:\n",{"type":993,"tag":1034,"props":6438,"children":6439},{"class":1036,"line":575},[6440,6445,6449],{"type":993,"tag":1034,"props":6441,"children":6442},{"style":1046},[6443],{"type":998,"value":6444},"                value ",{"type":993,"tag":1034,"props":6446,"children":6447},{"style":1040},[6448],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6450,"children":6451},{"style":1046},[6452],{"type":998,"value":6453}," value[key]\n",{"type":993,"tag":1034,"props":6455,"children":6456},{"class":1036,"line":584},[6457,6462],{"type":993,"tag":1034,"props":6458,"children":6459},{"style":1040},[6460],{"type":998,"value":6461},"            else",{"type":993,"tag":1034,"props":6463,"children":6464},{"style":1046},[6465],{"type":998,"value":1721},{"type":993,"tag":1034,"props":6467,"children":6468},{"class":1036,"line":593},[6469,6473],{"type":993,"tag":1034,"props":6470,"children":6471},{"style":1040},[6472],{"type":998,"value":5580},{"type":993,"tag":1034,"props":6474,"children":6475},{"style":1046},[6476],{"type":998,"value":6477}," default\n",{"type":993,"tag":1034,"props":6479,"children":6480},{"class":1036,"line":602},[6481,6485],{"type":993,"tag":1034,"props":6482,"children":6483},{"style":1040},[6484],{"type":998,"value":3948},{"type":993,"tag":1034,"props":6486,"children":6487},{"style":1046},[6488],{"type":998,"value":6489}," value\n",{"type":993,"tag":1034,"props":6491,"children":6492},{"class":1036,"line":611},[6493],{"type":993,"tag":1034,"props":6494,"children":6495},{"style":1046},[6496],{"type":998,"value":3747},{"type":993,"tag":1034,"props":6498,"children":6499},{"class":1036,"line":621},[6500,6504,6509],{"type":993,"tag":1034,"props":6501,"children":6502},{"style":1040},[6503],{"type":998,"value":3755},{"type":993,"tag":1034,"props":6505,"children":6506},{"style":1123},[6507],{"type":998,"value":6508}," set",{"type":993,"tag":1034,"props":6510,"children":6511},{"style":1046},[6512],{"type":998,"value":6513},"(self, key_path, value):\n",{"type":993,"tag":1034,"props":6515,"children":6516},{"class":1036,"line":630},[6517],{"type":993,"tag":1034,"props":6518,"children":6519},{"style":1090},[6520],{"type":998,"value":6521},"        \"\"\"Set configuration value using dot notation\"\"\"\n",{"type":993,"tag":1034,"props":6523,"children":6524},{"class":1036,"line":639},[6525,6529,6533,6537,6541],{"type":993,"tag":1034,"props":6526,"children":6527},{"style":1046},[6528],{"type":998,"value":6325},{"type":993,"tag":1034,"props":6530,"children":6531},{"style":1040},[6532],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6534,"children":6535},{"style":1046},[6536],{"type":998,"value":6334},{"type":993,"tag":1034,"props":6538,"children":6539},{"style":1090},[6540],{"type":998,"value":6339},{"type":993,"tag":1034,"props":6542,"children":6543},{"style":1046},[6544],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6546,"children":6547},{"class":1036,"line":648},[6548,6553,6557,6561],{"type":993,"tag":1034,"props":6549,"children":6550},{"style":1046},[6551],{"type":998,"value":6552},"        config ",{"type":993,"tag":1034,"props":6554,"children":6555},{"style":1040},[6556],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6558,"children":6559},{"style":1123},[6560],{"type":998,"value":5477},{"type":993,"tag":1034,"props":6562,"children":6563},{"style":1046},[6564],{"type":998,"value":6079},{"type":993,"tag":1034,"props":6566,"children":6567},{"class":1036,"line":657},[6568],{"type":993,"tag":1034,"props":6569,"children":6570},{"style":1046},[6571],{"type":998,"value":4763},{"type":993,"tag":1034,"props":6573,"children":6574},{"class":1036,"line":666},[6575,6579,6583,6587,6592,6597,6601],{"type":993,"tag":1034,"props":6576,"children":6577},{"style":1040},[6578],{"type":998,"value":6378},{"type":993,"tag":1034,"props":6580,"children":6581},{"style":1046},[6582],{"type":998,"value":6383},{"type":993,"tag":1034,"props":6584,"children":6585},{"style":1040},[6586],{"type":998,"value":5273},{"type":993,"tag":1034,"props":6588,"children":6589},{"style":1046},[6590],{"type":998,"value":6591}," keys[:",{"type":993,"tag":1034,"props":6593,"children":6594},{"style":1040},[6595],{"type":998,"value":6596},"-",{"type":993,"tag":1034,"props":6598,"children":6599},{"style":1123},[6600],{"type":998,"value":2264},{"type":993,"tag":1034,"props":6602,"children":6603},{"style":1046},[6604],{"type":998,"value":6605},"]:\n",{"type":993,"tag":1034,"props":6607,"children":6608},{"class":1036,"line":675},[6609,6613,6617,6622,6627],{"type":993,"tag":1034,"props":6610,"children":6611},{"style":1040},[6612],{"type":998,"value":6400},{"type":993,"tag":1034,"props":6614,"children":6615},{"style":1046},[6616],{"type":998,"value":6383},{"type":993,"tag":1034,"props":6618,"children":6619},{"style":1040},[6620],{"type":998,"value":6621},"not",{"type":993,"tag":1034,"props":6623,"children":6624},{"style":1040},[6625],{"type":998,"value":6626}," in",{"type":993,"tag":1034,"props":6628,"children":6629},{"style":1046},[6630],{"type":998,"value":6631}," config:\n",{"type":993,"tag":1034,"props":6633,"children":6634},{"class":1036,"line":685},[6635,6640,6644],{"type":993,"tag":1034,"props":6636,"children":6637},{"style":1046},[6638],{"type":998,"value":6639},"                config[key] ",{"type":993,"tag":1034,"props":6641,"children":6642},{"style":1040},[6643],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6645,"children":6646},{"style":1046},[6647],{"type":998,"value":6648}," {}\n",{"type":993,"tag":1034,"props":6650,"children":6651},{"class":1036,"line":694},[6652,6656,6660],{"type":993,"tag":1034,"props":6653,"children":6654},{"style":1046},[6655],{"type":998,"value":6066},{"type":993,"tag":1034,"props":6657,"children":6658},{"style":1040},[6659],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6661,"children":6662},{"style":1046},[6663],{"type":998,"value":6664}," config[key]\n",{"type":993,"tag":1034,"props":6666,"children":6667},{"class":1036,"line":703},[6668],{"type":993,"tag":1034,"props":6669,"children":6670},{"style":1046},[6671],{"type":998,"value":4763},{"type":993,"tag":1034,"props":6673,"children":6674},{"class":1036,"line":712},[6675,6680,6684,6688,6693,6697],{"type":993,"tag":1034,"props":6676,"children":6677},{"style":1046},[6678],{"type":998,"value":6679},"        config[keys[",{"type":993,"tag":1034,"props":6681,"children":6682},{"style":1040},[6683],{"type":998,"value":6596},{"type":993,"tag":1034,"props":6685,"children":6686},{"style":1123},[6687],{"type":998,"value":2264},{"type":993,"tag":1034,"props":6689,"children":6690},{"style":1046},[6691],{"type":998,"value":6692},"]] ",{"type":993,"tag":1034,"props":6694,"children":6695},{"style":1040},[6696],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6698,"children":6699},{"style":1046},[6700],{"type":998,"value":6489},{"type":993,"tag":1034,"props":6702,"children":6703},{"class":1036,"line":721},[6704,6708],{"type":993,"tag":1034,"props":6705,"children":6706},{"style":1123},[6707],{"type":998,"value":4006},{"type":993,"tag":1034,"props":6709,"children":6710},{"style":1046},[6711],{"type":998,"value":6712},".save_config()\n",{"type":993,"tag":1034,"props":6714,"children":6715},{"class":1036,"line":730},[6716],{"type":993,"tag":1034,"props":6717,"children":6718},{"emptyLinePlaceholder":13},[6719],{"type":998,"value":1057},{"type":993,"tag":1034,"props":6721,"children":6722},{"class":1036,"line":739},[6723],{"type":993,"tag":1034,"props":6724,"children":6725},{"style":1063},[6726],{"type":998,"value":6727},"# Usage example\n",{"type":993,"tag":1034,"props":6729,"children":6730},{"class":1036,"line":749},[6731,6736,6740],{"type":993,"tag":1034,"props":6732,"children":6733},{"style":1046},[6734],{"type":998,"value":6735},"config_manager ",{"type":993,"tag":1034,"props":6737,"children":6738},{"style":1040},[6739],{"type":998,"value":1079},{"type":993,"tag":1034,"props":6741,"children":6742},{"style":1046},[6743],{"type":998,"value":6744}," ConfigManager()\n",{"type":993,"tag":1034,"props":6746,"children":6747},{"class":1036,"line":758},[6748],{"type":993,"tag":1034,"props":6749,"children":6750},{"emptyLinePlaceholder":13},[6751],{"type":998,"value":1057},{"type":993,"tag":1034,"props":6753,"children":6754},{"class":1036,"line":767},[6755,6759,6763,6768],{"type":993,"tag":1034,"props":6756,"children":6757},{"style":1123},[6758],{"type":998,"value":1250},{"type":993,"tag":1034,"props":6760,"children":6761},{"style":1046},[6762],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6764,"children":6765},{"style":1090},[6766],{"type":998,"value":6767},"\"Configuration Settings:\"",{"type":993,"tag":1034,"props":6769,"children":6770},{"style":1046},[6771],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6773,"children":6775},{"class":1036,"line":6774},84,[6776,6780,6784,6788,6793,6797,6802,6807,6812,6816,6820],{"type":993,"tag":1034,"props":6777,"children":6778},{"style":1123},[6779],{"type":998,"value":1250},{"type":993,"tag":1034,"props":6781,"children":6782},{"style":1046},[6783],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6785,"children":6786},{"style":1040},[6787],{"type":998,"value":1391},{"type":993,"tag":1034,"props":6789,"children":6790},{"style":1090},[6791],{"type":998,"value":6792},"\"App name: ",{"type":993,"tag":1034,"props":6794,"children":6795},{"style":1123},[6796],{"type":998,"value":1401},{"type":993,"tag":1034,"props":6798,"children":6799},{"style":1046},[6800],{"type":998,"value":6801},"config_manager.get(",{"type":993,"tag":1034,"props":6803,"children":6804},{"style":1090},[6805],{"type":998,"value":6806},"'app.name'",{"type":993,"tag":1034,"props":6808,"children":6809},{"style":1046},[6810],{"type":998,"value":6811},")",{"type":993,"tag":1034,"props":6813,"children":6814},{"style":1123},[6815],{"type":998,"value":1421},{"type":993,"tag":1034,"props":6817,"children":6818},{"style":1090},[6819],{"type":998,"value":1349},{"type":993,"tag":1034,"props":6821,"children":6822},{"style":1046},[6823],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6825,"children":6826},{"class":1036,"line":776},[6827,6831,6835,6839,6844,6848,6852,6857,6861,6865,6869],{"type":993,"tag":1034,"props":6828,"children":6829},{"style":1123},[6830],{"type":998,"value":1250},{"type":993,"tag":1034,"props":6832,"children":6833},{"style":1046},[6834],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6836,"children":6837},{"style":1040},[6838],{"type":998,"value":1391},{"type":993,"tag":1034,"props":6840,"children":6841},{"style":1090},[6842],{"type":998,"value":6843},"\"Debug mode: ",{"type":993,"tag":1034,"props":6845,"children":6846},{"style":1123},[6847],{"type":998,"value":1401},{"type":993,"tag":1034,"props":6849,"children":6850},{"style":1046},[6851],{"type":998,"value":6801},{"type":993,"tag":1034,"props":6853,"children":6854},{"style":1090},[6855],{"type":998,"value":6856},"'app.debug'",{"type":993,"tag":1034,"props":6858,"children":6859},{"style":1046},[6860],{"type":998,"value":6811},{"type":993,"tag":1034,"props":6862,"children":6863},{"style":1123},[6864],{"type":998,"value":1421},{"type":993,"tag":1034,"props":6866,"children":6867},{"style":1090},[6868],{"type":998,"value":1349},{"type":993,"tag":1034,"props":6870,"children":6871},{"style":1046},[6872],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6874,"children":6875},{"class":1036,"line":785},[6876,6880,6884,6888,6893,6897,6901,6906,6910,6914,6918],{"type":993,"tag":1034,"props":6877,"children":6878},{"style":1123},[6879],{"type":998,"value":1250},{"type":993,"tag":1034,"props":6881,"children":6882},{"style":1046},[6883],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6885,"children":6886},{"style":1040},[6887],{"type":998,"value":1391},{"type":993,"tag":1034,"props":6889,"children":6890},{"style":1090},[6891],{"type":998,"value":6892},"\"Database port: ",{"type":993,"tag":1034,"props":6894,"children":6895},{"style":1123},[6896],{"type":998,"value":1401},{"type":993,"tag":1034,"props":6898,"children":6899},{"style":1046},[6900],{"type":998,"value":6801},{"type":993,"tag":1034,"props":6902,"children":6903},{"style":1090},[6904],{"type":998,"value":6905},"'database.port'",{"type":993,"tag":1034,"props":6907,"children":6908},{"style":1046},[6909],{"type":998,"value":6811},{"type":993,"tag":1034,"props":6911,"children":6912},{"style":1123},[6913],{"type":998,"value":1421},{"type":993,"tag":1034,"props":6915,"children":6916},{"style":1090},[6917],{"type":998,"value":1349},{"type":993,"tag":1034,"props":6919,"children":6920},{"style":1046},[6921],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6923,"children":6924},{"class":1036,"line":794},[6925,6929,6933,6937,6942,6946,6950,6955,6959,6963,6967],{"type":993,"tag":1034,"props":6926,"children":6927},{"style":1123},[6928],{"type":998,"value":1250},{"type":993,"tag":1034,"props":6930,"children":6931},{"style":1046},[6932],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6934,"children":6935},{"style":1040},[6936],{"type":998,"value":1391},{"type":993,"tag":1034,"props":6938,"children":6939},{"style":1090},[6940],{"type":998,"value":6941},"\"Cache timeout: ",{"type":993,"tag":1034,"props":6943,"children":6944},{"style":1123},[6945],{"type":998,"value":1401},{"type":993,"tag":1034,"props":6947,"children":6948},{"style":1046},[6949],{"type":998,"value":6801},{"type":993,"tag":1034,"props":6951,"children":6952},{"style":1090},[6953],{"type":998,"value":6954},"'features.cache_timeout'",{"type":993,"tag":1034,"props":6956,"children":6957},{"style":1046},[6958],{"type":998,"value":6811},{"type":993,"tag":1034,"props":6960,"children":6961},{"style":1123},[6962],{"type":998,"value":1421},{"type":993,"tag":1034,"props":6964,"children":6965},{"style":1090},[6966],{"type":998,"value":1349},{"type":993,"tag":1034,"props":6968,"children":6969},{"style":1046},[6970],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6972,"children":6973},{"class":1036,"line":803},[6974],{"type":993,"tag":1034,"props":6975,"children":6976},{"emptyLinePlaceholder":13},[6977],{"type":998,"value":1057},{"type":993,"tag":1034,"props":6979,"children":6980},{"class":1036,"line":812},[6981],{"type":993,"tag":1034,"props":6982,"children":6983},{"style":1063},[6984],{"type":998,"value":6985},"# Update a setting\n",{"type":993,"tag":1034,"props":6987,"children":6988},{"class":1036,"line":822},[6989,6994,6998,7002,7006],{"type":993,"tag":1034,"props":6990,"children":6991},{"style":1046},[6992],{"type":998,"value":6993},"config_manager.set(",{"type":993,"tag":1034,"props":6995,"children":6996},{"style":1090},[6997],{"type":998,"value":6856},{"type":993,"tag":1034,"props":6999,"children":7000},{"style":1046},[7001],{"type":998,"value":1153},{"type":993,"tag":1034,"props":7003,"children":7004},{"style":1123},[7005],{"type":998,"value":1189},{"type":993,"tag":1034,"props":7007,"children":7008},{"style":1046},[7009],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7011,"children":7012},{"class":1036,"line":831},[7013,7017,7021,7025,7030,7034,7038,7042,7046,7050,7054],{"type":993,"tag":1034,"props":7014,"children":7015},{"style":1123},[7016],{"type":998,"value":1250},{"type":993,"tag":1034,"props":7018,"children":7019},{"style":1046},[7020],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7022,"children":7023},{"style":1040},[7024],{"type":998,"value":1391},{"type":993,"tag":1034,"props":7026,"children":7027},{"style":1090},[7028],{"type":998,"value":7029},"\"Debug mode updated: ",{"type":993,"tag":1034,"props":7031,"children":7032},{"style":1123},[7033],{"type":998,"value":1401},{"type":993,"tag":1034,"props":7035,"children":7036},{"style":1046},[7037],{"type":998,"value":6801},{"type":993,"tag":1034,"props":7039,"children":7040},{"style":1090},[7041],{"type":998,"value":6856},{"type":993,"tag":1034,"props":7043,"children":7044},{"style":1046},[7045],{"type":998,"value":6811},{"type":993,"tag":1034,"props":7047,"children":7048},{"style":1123},[7049],{"type":998,"value":1421},{"type":993,"tag":1034,"props":7051,"children":7052},{"style":1090},[7053],{"type":998,"value":1349},{"type":993,"tag":1034,"props":7055,"children":7056},{"style":1046},[7057],{"type":998,"value":1265},{"type":993,"tag":1805,"props":7059,"children":7063},{"emoji":7060,"title":7061,"type":7062},"✅","Best Practices","success",[7064,7072,7095,7103,7126,7134,7157,7165],{"type":993,"tag":1001,"props":7065,"children":7066},{},[7067],{"type":993,"tag":1815,"props":7068,"children":7069},{},[7070],{"type":998,"value":7071},"JSON Handling Guidelines:",{"type":993,"tag":1821,"props":7073,"children":7074},{},[7075,7080,7085,7090],{"type":993,"tag":1825,"props":7076,"children":7077},{},[7078],{"type":998,"value":7079},"Always handle JSON parsing errors with try/except blocks",{"type":993,"tag":1825,"props":7081,"children":7082},{},[7083],{"type":998,"value":7084},"Use meaningful variable names for JSON data structures",{"type":993,"tag":1825,"props":7086,"children":7087},{},[7088],{"type":998,"value":7089},"Validate data structure before accessing nested elements",{"type":993,"tag":1825,"props":7091,"children":7092},{},[7093],{"type":998,"value":7094},"Store configuration in JSON files for easy modification",{"type":993,"tag":1001,"props":7096,"children":7097},{},[7098],{"type":993,"tag":1815,"props":7099,"children":7100},{},[7101],{"type":998,"value":7102},"Performance Tips:",{"type":993,"tag":1821,"props":7104,"children":7105},{},[7106,7111,7116,7121],{"type":993,"tag":1825,"props":7107,"children":7108},{},[7109],{"type":998,"value":7110},"Use json.loads() for string data, json.load() for files",{"type":993,"tag":1825,"props":7112,"children":7113},{},[7114],{"type":998,"value":7115},"Consider using indent parameter only during development",{"type":993,"tag":1825,"props":7117,"children":7118},{},[7119],{"type":998,"value":7120},"Cache parsed JSON data for repeated access",{"type":993,"tag":1825,"props":7122,"children":7123},{},[7124],{"type":998,"value":7125},"Use streaming JSON parsers for very large files",{"type":993,"tag":1001,"props":7127,"children":7128},{},[7129],{"type":993,"tag":1815,"props":7130,"children":7131},{},[7132],{"type":998,"value":7133},"Security Considerations:",{"type":993,"tag":1821,"props":7135,"children":7136},{},[7137,7142,7147,7152],{"type":993,"tag":1825,"props":7138,"children":7139},{},[7140],{"type":998,"value":7141},"Validate JSON data from external sources",{"type":993,"tag":1825,"props":7143,"children":7144},{},[7145],{"type":998,"value":7146},"Set limits on JSON file sizes and nesting depth",{"type":993,"tag":1825,"props":7148,"children":7149},{},[7150],{"type":998,"value":7151},"Never use eval() on JSON-like strings",{"type":993,"tag":1825,"props":7153,"children":7154},{},[7155],{"type":998,"value":7156},"Sanitize user input before JSON serialization",{"type":993,"tag":1001,"props":7158,"children":7159},{},[7160],{"type":993,"tag":1815,"props":7161,"children":7162},{},[7163],{"type":998,"value":7164},"Common Patterns:",{"type":993,"tag":1821,"props":7166,"children":7167},{},[7168,7173,7178,7183],{"type":993,"tag":1825,"props":7169,"children":7170},{},[7171],{"type":998,"value":7172},"Use default values when accessing optional JSON fields",{"type":993,"tag":1825,"props":7174,"children":7175},{},[7176],{"type":998,"value":7177},"Implement custom encoders for complex Python objects",{"type":993,"tag":1825,"props":7179,"children":7180},{},[7181],{"type":998,"value":7182},"Create configuration classes that wrap JSON files",{"type":993,"tag":1825,"props":7184,"children":7185},{},[7186],{"type":998,"value":7187},"Use JSON Schema for data validation in production",{"type":993,"tag":1793,"props":7189,"children":7191},{"id":7190},"essential-json-methods-and-functions",[7192],{"type":998,"value":7193},"Essential JSON Methods and Functions",{"type":993,"tag":1001,"props":7195,"children":7196},{},[7197],{"type":998,"value":7198},"Understanding core JSON functions enables efficient data serialization and processing in Python applications.",{"type":993,"tag":7200,"props":7201,"children":7202},"table",{},[7203,7232],{"type":993,"tag":7204,"props":7205,"children":7206},"thead",{},[7207],{"type":993,"tag":7208,"props":7209,"children":7210},"tr",{},[7211,7217,7222,7227],{"type":993,"tag":7212,"props":7213,"children":7214},"th",{},[7215],{"type":998,"value":7216},"Function",{"type":993,"tag":7212,"props":7218,"children":7219},{},[7220],{"type":998,"value":7221},"Purpose",{"type":993,"tag":7212,"props":7223,"children":7224},{},[7225],{"type":998,"value":7226},"Example",{"type":993,"tag":7212,"props":7228,"children":7229},{},[7230],{"type":998,"value":7231},"Result",{"type":993,"tag":7233,"props":7234,"children":7235},"tbody",{},[7236,7272,7307,7338,7369,7400,7431,7464],{"type":993,"tag":7208,"props":7237,"children":7238},{},[7239,7249,7254,7263],{"type":993,"tag":7240,"props":7241,"children":7242},"td",{},[7243],{"type":993,"tag":1007,"props":7244,"children":7246},{"className":7245},[],[7247],{"type":998,"value":7248},"json.dumps(obj)",{"type":993,"tag":7240,"props":7250,"children":7251},{},[7252],{"type":998,"value":7253},"Convert Python object to JSON string",{"type":993,"tag":7240,"props":7255,"children":7256},{},[7257],{"type":993,"tag":1007,"props":7258,"children":7260},{"className":7259},[],[7261],{"type":998,"value":7262},"json.dumps({\"name\": \"Alice\"})",{"type":993,"tag":7240,"props":7264,"children":7265},{},[7266],{"type":993,"tag":1007,"props":7267,"children":7269},{"className":7268},[],[7270],{"type":998,"value":7271},"'{\"name\": \"Alice\"}'",{"type":993,"tag":7208,"props":7273,"children":7274},{},[7275,7284,7289,7298],{"type":993,"tag":7240,"props":7276,"children":7277},{},[7278],{"type":993,"tag":1007,"props":7279,"children":7281},{"className":7280},[],[7282],{"type":998,"value":7283},"json.loads(s)",{"type":993,"tag":7240,"props":7285,"children":7286},{},[7287],{"type":998,"value":7288},"Parse JSON string to Python object",{"type":993,"tag":7240,"props":7290,"children":7291},{},[7292],{"type":993,"tag":1007,"props":7293,"children":7295},{"className":7294},[],[7296],{"type":998,"value":7297},"json.loads('{\"age\": 30}')",{"type":993,"tag":7240,"props":7299,"children":7300},{},[7301],{"type":993,"tag":1007,"props":7302,"children":7304},{"className":7303},[],[7305],{"type":998,"value":7306},"{'age': 30}",{"type":993,"tag":7208,"props":7308,"children":7309},{},[7310,7319,7324,7333],{"type":993,"tag":7240,"props":7311,"children":7312},{},[7313],{"type":993,"tag":1007,"props":7314,"children":7316},{"className":7315},[],[7317],{"type":998,"value":7318},"json.dump(obj, file)",{"type":993,"tag":7240,"props":7320,"children":7321},{},[7322],{"type":998,"value":7323},"Write JSON to file",{"type":993,"tag":7240,"props":7325,"children":7326},{},[7327],{"type":993,"tag":1007,"props":7328,"children":7330},{"className":7329},[],[7331],{"type":998,"value":7332},"json.dump(data, open(\"file.json\", \"w\"))",{"type":993,"tag":7240,"props":7334,"children":7335},{},[7336],{"type":998,"value":7337},"File created",{"type":993,"tag":7208,"props":7339,"children":7340},{},[7341,7350,7355,7364],{"type":993,"tag":7240,"props":7342,"children":7343},{},[7344],{"type":993,"tag":1007,"props":7345,"children":7347},{"className":7346},[],[7348],{"type":998,"value":7349},"json.load(file)",{"type":993,"tag":7240,"props":7351,"children":7352},{},[7353],{"type":998,"value":7354},"Read JSON from file",{"type":993,"tag":7240,"props":7356,"children":7357},{},[7358],{"type":993,"tag":1007,"props":7359,"children":7361},{"className":7360},[],[7362],{"type":998,"value":7363},"json.load(open(\"file.json\"))",{"type":993,"tag":7240,"props":7365,"children":7366},{},[7367],{"type":998,"value":7368},"Python object",{"type":993,"tag":7208,"props":7370,"children":7371},{},[7372,7381,7386,7395],{"type":993,"tag":7240,"props":7373,"children":7374},{},[7375],{"type":993,"tag":1007,"props":7376,"children":7378},{"className":7377},[],[7379],{"type":998,"value":7380},"dumps(indent=2)",{"type":993,"tag":7240,"props":7382,"children":7383},{},[7384],{"type":998,"value":7385},"Pretty-print JSON",{"type":993,"tag":7240,"props":7387,"children":7388},{},[7389],{"type":993,"tag":1007,"props":7390,"children":7392},{"className":7391},[],[7393],{"type":998,"value":7394},"json.dumps(data, indent=2)",{"type":993,"tag":7240,"props":7396,"children":7397},{},[7398],{"type":998,"value":7399},"Formatted string",{"type":993,"tag":7208,"props":7401,"children":7402},{},[7403,7412,7417,7426],{"type":993,"tag":7240,"props":7404,"children":7405},{},[7406],{"type":993,"tag":1007,"props":7407,"children":7409},{"className":7408},[],[7410],{"type":998,"value":7411},"dumps(sort_keys=True)",{"type":993,"tag":7240,"props":7413,"children":7414},{},[7415],{"type":998,"value":7416},"Sort keys in output",{"type":993,"tag":7240,"props":7418,"children":7419},{},[7420],{"type":993,"tag":1007,"props":7421,"children":7423},{"className":7422},[],[7424],{"type":998,"value":7425},"json.dumps(data, sort_keys=True)",{"type":993,"tag":7240,"props":7427,"children":7428},{},[7429],{"type":998,"value":7430},"Sorted JSON",{"type":993,"tag":7208,"props":7432,"children":7433},{},[7434,7443,7448,7459],{"type":993,"tag":7240,"props":7435,"children":7436},{},[7437],{"type":993,"tag":1007,"props":7438,"children":7440},{"className":7439},[],[7441],{"type":998,"value":7442},"loads() + try/except",{"type":993,"tag":7240,"props":7444,"children":7445},{},[7446],{"type":998,"value":7447},"Safe JSON parsing",{"type":993,"tag":7240,"props":7449,"children":7450},{},[7451,7453],{"type":998,"value":7452},"Handle ",{"type":993,"tag":1007,"props":7454,"children":7456},{"className":7455},[],[7457],{"type":998,"value":7458},"JSONDecodeError",{"type":993,"tag":7240,"props":7460,"children":7461},{},[7462],{"type":998,"value":7463},"Error handling",{"type":993,"tag":7208,"props":7465,"children":7466},{},[7467,7476,7481,7486],{"type":993,"tag":7240,"props":7468,"children":7469},{},[7470],{"type":993,"tag":1007,"props":7471,"children":7473},{"className":7472},[],[7474],{"type":998,"value":7475},"dumps(cls=Encoder)",{"type":993,"tag":7240,"props":7477,"children":7478},{},[7479],{"type":998,"value":7480},"Custom serialization",{"type":993,"tag":7240,"props":7482,"children":7483},{},[7484],{"type":998,"value":7485},"Use custom encoder class",{"type":993,"tag":7240,"props":7487,"children":7488},{},[7489],{"type":998,"value":7490},"Extended types",{"type":993,"tag":7492,"props":7493,"children":7495},"content-exercise",{":widget-view":7494,"category":6,"id":766},"true",[],{"type":993,"tag":7497,"props":7498,"children":7501},"exercise",{"hint":7499,"prompt":7500},"Use json.dump() to save data, json.load() to read data, and try/except for error handling","Create a simple student record system using JSON. Build functions to save student data to a JSON file, load data from the file, and add new students. Handle file not found errors gracefully.",[7502],{"type":993,"tag":1025,"props":7503,"children":7505},{"className":1027,"code":7504,"language":6,"meta":8,"style":8},"import json\n\ndef save_students(students, filename=\"students.json\"):\n    # TODO: Save students list to JSON file\n    # TODO: Handle file writing errors\n    pass\n\ndef load_students(filename=\"students.json\"):\n    # TODO: Load students from JSON file\n    # TODO: Return empty list if file doesn't exist\n    # TODO: Handle JSON parsing errors\n    pass\n\ndef add_student(students, name, age, grade):\n    # TODO: Create student dictionary\n    # TODO: Add to students list\n    pass\n\ndef display_students(students):\n    # TODO: Print all students in a readable format\n    pass\n\n# TODO: Test your functions\nstudents = load_students()\nprint(f\"Loaded {len(students)} students\")\n\n# Add some students\nadd_student(students, \"Alice\", 16, \"10th\")\nadd_student(students, \"Bob\", 17, \"11th\")\nadd_student(students, \"Carol\", 15, \"9th\")\n\n# Display and save\ndisplay_students(students)\nsave_students(students)\nprint(\"Students saved to file\")\n",[7506],{"type":993,"tag":1007,"props":7507,"children":7508},{"__ignoreMap":8},[7509,7520,7527,7557,7575,7591,7599,7606,7634,7650,7666,7682,7689,7696,7713,7729,7745,7752,7759,7776,7792,7799,7806,7823,7840,7883,7890,7898,7932,7965,7998,8005,8013,8021,8029],{"type":993,"tag":1034,"props":7510,"children":7511},{"class":1036,"line":12},[7512,7516],{"type":993,"tag":1034,"props":7513,"children":7514},{"style":1040},[7515],{"type":998,"value":1043},{"type":993,"tag":1034,"props":7517,"children":7518},{"style":1046},[7519],{"type":998,"value":1049},{"type":993,"tag":1034,"props":7521,"children":7522},{"class":1036,"line":27},[7523],{"type":993,"tag":1034,"props":7524,"children":7525},{"emptyLinePlaceholder":13},[7526],{"type":998,"value":1057},{"type":993,"tag":1034,"props":7528,"children":7529},{"class":1036,"line":36},[7530,7534,7539,7544,7548,7553],{"type":993,"tag":1034,"props":7531,"children":7532},{"style":1040},[7533],{"type":998,"value":4403},{"type":993,"tag":1034,"props":7535,"children":7536},{"style":3705},[7537],{"type":998,"value":7538}," save_students",{"type":993,"tag":1034,"props":7540,"children":7541},{"style":1046},[7542],{"type":998,"value":7543},"(students, filename",{"type":993,"tag":1034,"props":7545,"children":7546},{"style":1040},[7547],{"type":998,"value":1079},{"type":993,"tag":1034,"props":7549,"children":7550},{"style":1090},[7551],{"type":998,"value":7552},"\"students.json\"",{"type":993,"tag":1034,"props":7554,"children":7555},{"style":1046},[7556],{"type":998,"value":3731},{"type":993,"tag":1034,"props":7558,"children":7559},{"class":1036,"line":45},[7560,7565,7570],{"type":993,"tag":1034,"props":7561,"children":7562},{"style":1063},[7563],{"type":998,"value":7564},"    # ",{"type":993,"tag":1034,"props":7566,"children":7567},{"style":1040},[7568],{"type":998,"value":7569},"TODO",{"type":993,"tag":1034,"props":7571,"children":7572},{"style":1063},[7573],{"type":998,"value":7574},": Save students list to JSON file\n",{"type":993,"tag":1034,"props":7576,"children":7577},{"class":1036,"line":54},[7578,7582,7586],{"type":993,"tag":1034,"props":7579,"children":7580},{"style":1063},[7581],{"type":998,"value":7564},{"type":993,"tag":1034,"props":7583,"children":7584},{"style":1040},[7585],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7587,"children":7588},{"style":1063},[7589],{"type":998,"value":7590},": Handle file writing errors\n",{"type":993,"tag":1034,"props":7592,"children":7593},{"class":1036,"line":63},[7594],{"type":993,"tag":1034,"props":7595,"children":7596},{"style":1040},[7597],{"type":998,"value":7598},"    pass\n",{"type":993,"tag":1034,"props":7600,"children":7601},{"class":1036,"line":72},[7602],{"type":993,"tag":1034,"props":7603,"children":7604},{"emptyLinePlaceholder":13},[7605],{"type":998,"value":1057},{"type":993,"tag":1034,"props":7607,"children":7608},{"class":1036,"line":81},[7609,7613,7618,7622,7626,7630],{"type":993,"tag":1034,"props":7610,"children":7611},{"style":1040},[7612],{"type":998,"value":4403},{"type":993,"tag":1034,"props":7614,"children":7615},{"style":3705},[7616],{"type":998,"value":7617}," load_students",{"type":993,"tag":1034,"props":7619,"children":7620},{"style":1046},[7621],{"type":998,"value":4670},{"type":993,"tag":1034,"props":7623,"children":7624},{"style":1040},[7625],{"type":998,"value":1079},{"type":993,"tag":1034,"props":7627,"children":7628},{"style":1090},[7629],{"type":998,"value":7552},{"type":993,"tag":1034,"props":7631,"children":7632},{"style":1046},[7633],{"type":998,"value":3731},{"type":993,"tag":1034,"props":7635,"children":7636},{"class":1036,"line":91},[7637,7641,7645],{"type":993,"tag":1034,"props":7638,"children":7639},{"style":1063},[7640],{"type":998,"value":7564},{"type":993,"tag":1034,"props":7642,"children":7643},{"style":1040},[7644],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7646,"children":7647},{"style":1063},[7648],{"type":998,"value":7649},": Load students from JSON file\n",{"type":993,"tag":1034,"props":7651,"children":7652},{"class":1036,"line":100},[7653,7657,7661],{"type":993,"tag":1034,"props":7654,"children":7655},{"style":1063},[7656],{"type":998,"value":7564},{"type":993,"tag":1034,"props":7658,"children":7659},{"style":1040},[7660],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7662,"children":7663},{"style":1063},[7664],{"type":998,"value":7665},": Return empty list if file doesn't exist\n",{"type":993,"tag":1034,"props":7667,"children":7668},{"class":1036,"line":109},[7669,7673,7677],{"type":993,"tag":1034,"props":7670,"children":7671},{"style":1063},[7672],{"type":998,"value":7564},{"type":993,"tag":1034,"props":7674,"children":7675},{"style":1040},[7676],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7678,"children":7679},{"style":1063},[7680],{"type":998,"value":7681},": Handle JSON parsing errors\n",{"type":993,"tag":1034,"props":7683,"children":7684},{"class":1036,"line":118},[7685],{"type":993,"tag":1034,"props":7686,"children":7687},{"style":1040},[7688],{"type":998,"value":7598},{"type":993,"tag":1034,"props":7690,"children":7691},{"class":1036,"line":127},[7692],{"type":993,"tag":1034,"props":7693,"children":7694},{"emptyLinePlaceholder":13},[7695],{"type":998,"value":1057},{"type":993,"tag":1034,"props":7697,"children":7698},{"class":1036,"line":136},[7699,7703,7708],{"type":993,"tag":1034,"props":7700,"children":7701},{"style":1040},[7702],{"type":998,"value":4403},{"type":993,"tag":1034,"props":7704,"children":7705},{"style":3705},[7706],{"type":998,"value":7707}," add_student",{"type":993,"tag":1034,"props":7709,"children":7710},{"style":1046},[7711],{"type":998,"value":7712},"(students, name, age, grade):\n",{"type":993,"tag":1034,"props":7714,"children":7715},{"class":1036,"line":146},[7716,7720,7724],{"type":993,"tag":1034,"props":7717,"children":7718},{"style":1063},[7719],{"type":998,"value":7564},{"type":993,"tag":1034,"props":7721,"children":7722},{"style":1040},[7723],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7725,"children":7726},{"style":1063},[7727],{"type":998,"value":7728},": Create student dictionary\n",{"type":993,"tag":1034,"props":7730,"children":7731},{"class":1036,"line":155},[7732,7736,7740],{"type":993,"tag":1034,"props":7733,"children":7734},{"style":1063},[7735],{"type":998,"value":7564},{"type":993,"tag":1034,"props":7737,"children":7738},{"style":1040},[7739],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7741,"children":7742},{"style":1063},[7743],{"type":998,"value":7744},": Add to students list\n",{"type":993,"tag":1034,"props":7746,"children":7747},{"class":1036,"line":164},[7748],{"type":993,"tag":1034,"props":7749,"children":7750},{"style":1040},[7751],{"type":998,"value":7598},{"type":993,"tag":1034,"props":7753,"children":7754},{"class":1036,"line":173},[7755],{"type":993,"tag":1034,"props":7756,"children":7757},{"emptyLinePlaceholder":13},[7758],{"type":998,"value":1057},{"type":993,"tag":1034,"props":7760,"children":7761},{"class":1036,"line":182},[7762,7766,7771],{"type":993,"tag":1034,"props":7763,"children":7764},{"style":1040},[7765],{"type":998,"value":4403},{"type":993,"tag":1034,"props":7767,"children":7768},{"style":3705},[7769],{"type":998,"value":7770}," display_students",{"type":993,"tag":1034,"props":7772,"children":7773},{"style":1046},[7774],{"type":998,"value":7775},"(students):\n",{"type":993,"tag":1034,"props":7777,"children":7778},{"class":1036,"line":191},[7779,7783,7787],{"type":993,"tag":1034,"props":7780,"children":7781},{"style":1063},[7782],{"type":998,"value":7564},{"type":993,"tag":1034,"props":7784,"children":7785},{"style":1040},[7786],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7788,"children":7789},{"style":1063},[7790],{"type":998,"value":7791},": Print all students in a readable format\n",{"type":993,"tag":1034,"props":7793,"children":7794},{"class":1036,"line":201},[7795],{"type":993,"tag":1034,"props":7796,"children":7797},{"style":1040},[7798],{"type":998,"value":7598},{"type":993,"tag":1034,"props":7800,"children":7801},{"class":1036,"line":210},[7802],{"type":993,"tag":1034,"props":7803,"children":7804},{"emptyLinePlaceholder":13},[7805],{"type":998,"value":1057},{"type":993,"tag":1034,"props":7807,"children":7808},{"class":1036,"line":219},[7809,7814,7818],{"type":993,"tag":1034,"props":7810,"children":7811},{"style":1063},[7812],{"type":998,"value":7813},"# ",{"type":993,"tag":1034,"props":7815,"children":7816},{"style":1040},[7817],{"type":998,"value":7569},{"type":993,"tag":1034,"props":7819,"children":7820},{"style":1063},[7821],{"type":998,"value":7822},": Test your functions\n",{"type":993,"tag":1034,"props":7824,"children":7825},{"class":1036,"line":228},[7826,7831,7835],{"type":993,"tag":1034,"props":7827,"children":7828},{"style":1046},[7829],{"type":998,"value":7830},"students ",{"type":993,"tag":1034,"props":7832,"children":7833},{"style":1040},[7834],{"type":998,"value":1079},{"type":993,"tag":1034,"props":7836,"children":7837},{"style":1046},[7838],{"type":998,"value":7839}," load_students()\n",{"type":993,"tag":1034,"props":7841,"children":7842},{"class":1036,"line":238},[7843,7847,7851,7855,7860,7865,7870,7874,7879],{"type":993,"tag":1034,"props":7844,"children":7845},{"style":1123},[7846],{"type":998,"value":1250},{"type":993,"tag":1034,"props":7848,"children":7849},{"style":1046},[7850],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7852,"children":7853},{"style":1040},[7854],{"type":998,"value":1391},{"type":993,"tag":1034,"props":7856,"children":7857},{"style":1090},[7858],{"type":998,"value":7859},"\"Loaded ",{"type":993,"tag":1034,"props":7861,"children":7862},{"style":1123},[7863],{"type":998,"value":7864},"{len",{"type":993,"tag":1034,"props":7866,"children":7867},{"style":1046},[7868],{"type":998,"value":7869},"(students)",{"type":993,"tag":1034,"props":7871,"children":7872},{"style":1123},[7873],{"type":998,"value":1421},{"type":993,"tag":1034,"props":7875,"children":7876},{"style":1090},[7877],{"type":998,"value":7878}," students\"",{"type":993,"tag":1034,"props":7880,"children":7881},{"style":1046},[7882],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7884,"children":7885},{"class":1036,"line":247},[7886],{"type":993,"tag":1034,"props":7887,"children":7888},{"emptyLinePlaceholder":13},[7889],{"type":998,"value":1057},{"type":993,"tag":1034,"props":7891,"children":7892},{"class":1036,"line":256},[7893],{"type":993,"tag":1034,"props":7894,"children":7895},{"style":1063},[7896],{"type":998,"value":7897},"# Add some students\n",{"type":993,"tag":1034,"props":7899,"children":7900},{"class":1036,"line":265},[7901,7906,7910,7914,7919,7923,7928],{"type":993,"tag":1034,"props":7902,"children":7903},{"style":1046},[7904],{"type":998,"value":7905},"add_student(students, ",{"type":993,"tag":1034,"props":7907,"children":7908},{"style":1090},[7909],{"type":998,"value":3079},{"type":993,"tag":1034,"props":7911,"children":7912},{"style":1046},[7913],{"type":998,"value":1153},{"type":993,"tag":1034,"props":7915,"children":7916},{"style":1123},[7917],{"type":998,"value":7918},"16",{"type":993,"tag":1034,"props":7920,"children":7921},{"style":1046},[7922],{"type":998,"value":1153},{"type":993,"tag":1034,"props":7924,"children":7925},{"style":1090},[7926],{"type":998,"value":7927},"\"10th\"",{"type":993,"tag":1034,"props":7929,"children":7930},{"style":1046},[7931],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7933,"children":7934},{"class":1036,"line":274},[7935,7939,7943,7947,7952,7956,7961],{"type":993,"tag":1034,"props":7936,"children":7937},{"style":1046},[7938],{"type":998,"value":7905},{"type":993,"tag":1034,"props":7940,"children":7941},{"style":1090},[7942],{"type":998,"value":3137},{"type":993,"tag":1034,"props":7944,"children":7945},{"style":1046},[7946],{"type":998,"value":1153},{"type":993,"tag":1034,"props":7948,"children":7949},{"style":1123},[7950],{"type":998,"value":7951},"17",{"type":993,"tag":1034,"props":7953,"children":7954},{"style":1046},[7955],{"type":998,"value":1153},{"type":993,"tag":1034,"props":7957,"children":7958},{"style":1090},[7959],{"type":998,"value":7960},"\"11th\"",{"type":993,"tag":1034,"props":7962,"children":7963},{"style":1046},[7964],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7966,"children":7967},{"class":1036,"line":284},[7968,7972,7977,7981,7985,7989,7994],{"type":993,"tag":1034,"props":7969,"children":7970},{"style":1046},[7971],{"type":998,"value":7905},{"type":993,"tag":1034,"props":7973,"children":7974},{"style":1090},[7975],{"type":998,"value":7976},"\"Carol\"",{"type":993,"tag":1034,"props":7978,"children":7979},{"style":1046},[7980],{"type":998,"value":1153},{"type":993,"tag":1034,"props":7982,"children":7983},{"style":1123},[7984],{"type":998,"value":4126},{"type":993,"tag":1034,"props":7986,"children":7987},{"style":1046},[7988],{"type":998,"value":1153},{"type":993,"tag":1034,"props":7990,"children":7991},{"style":1090},[7992],{"type":998,"value":7993},"\"9th\"",{"type":993,"tag":1034,"props":7995,"children":7996},{"style":1046},[7997],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7999,"children":8000},{"class":1036,"line":293},[8001],{"type":993,"tag":1034,"props":8002,"children":8003},{"emptyLinePlaceholder":13},[8004],{"type":998,"value":1057},{"type":993,"tag":1034,"props":8006,"children":8007},{"class":1036,"line":302},[8008],{"type":993,"tag":1034,"props":8009,"children":8010},{"style":1063},[8011],{"type":998,"value":8012},"# Display and save\n",{"type":993,"tag":1034,"props":8014,"children":8015},{"class":1036,"line":311},[8016],{"type":993,"tag":1034,"props":8017,"children":8018},{"style":1046},[8019],{"type":998,"value":8020},"display_students(students)\n",{"type":993,"tag":1034,"props":8022,"children":8023},{"class":1036,"line":320},[8024],{"type":993,"tag":1034,"props":8025,"children":8026},{"style":1046},[8027],{"type":998,"value":8028},"save_students(students)\n",{"type":993,"tag":1034,"props":8030,"children":8031},{"class":1036,"line":329},[8032,8036,8040,8045],{"type":993,"tag":1034,"props":8033,"children":8034},{"style":1123},[8035],{"type":998,"value":1250},{"type":993,"tag":1034,"props":8037,"children":8038},{"style":1046},[8039],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8041,"children":8042},{"style":1090},[8043],{"type":998,"value":8044},"\"Students saved to file\"",{"type":993,"tag":1034,"props":8046,"children":8047},{"style":1046},[8048],{"type":998,"value":1265},{"type":993,"tag":2051,"props":8050,"children":8052},{"id":8051},"solution-and-explanation",[8053],{"type":998,"value":8054},"Solution and Explanation 💡",{"type":993,"tag":8056,"props":8057,"children":8058},"details",{},[8059,8067,9269,9277],{"type":993,"tag":8060,"props":8061,"children":8064},"summary",{"className":8062},[8063],"cursor-pointer",[8065],{"type":998,"value":8066},"Click to see the complete solution",{"type":993,"tag":1021,"props":8068,"children":8069},{},[8070],{"type":993,"tag":1025,"props":8071,"children":8073},{"className":1027,"code":8072,"language":6,"meta":8,"style":8},"import json\n\ndef save_students(students, filename=\"students.json\"):\n    # Save students list to JSON file\n    try:\n        with open(filename, 'w') as file:\n            json.dump(students, file, indent=2)\n        print(f\"Successfully saved {len(students)} students to {filename}\")\n    except Exception as e:\n        print(f\"Error saving students: {e}\")\n\ndef load_students(filename=\"students.json\"):\n    # Load students from JSON file\n    try:\n        with open(filename, 'r') as file:\n            students = json.load(file)\n        return students\n    except FileNotFoundError:\n        print(f\"File {filename} not found. Starting with empty list.\")\n        return []\n    except json.JSONDecodeError:\n        print(f\"Error reading JSON from {filename}. Starting with empty list.\")\n        return []\n\ndef add_student(students, name, age, grade):\n    # Create student dictionary\n    student = {\n        \"name\": name,\n        \"age\": age,\n        \"grade\": grade,\n        \"id\": len(students) + 1\n    }\n    # Add to students list\n    students.append(student)\n    print(f\"Added student: {name}\")\n\ndef display_students(students):\n    # Print all students in a readable format\n    if not students:\n        print(\"No students found.\")\n        return\n    \n    print(\"\\nStudent Records:\")\n    print(\"-\" * 30)\n    for student in students:\n        print(f\"ID: {student['id']}, Name: {student['name']}, Age: {student['age']}, Grade: {student['grade']}\")\n\n# Test your functions\nstudents = load_students()\nprint(f\"Loaded {len(students)} students\")\n\n# Add some students\nadd_student(students, \"Alice\", 16, \"10th\")\nadd_student(students, \"Bob\", 17, \"11th\")\nadd_student(students, \"Carol\", 15, \"9th\")\n\n# Display and save\ndisplay_students(students)\nsave_students(students)\nprint(\"Students saved to file\")\n",[8074],{"type":993,"tag":1007,"props":8075,"children":8076},{"__ignoreMap":8},[8077,8088,8095,8122,8130,8141,8176,8208,8265,8284,8324,8331,8358,8366,8377,8412,8436,8448,8463,8504,8516,8527,8568,8579,8586,8601,8609,8625,8637,8650,8663,8694,8701,8709,8717,8758,8765,8780,8788,8805,8825,8833,8840,8868,8898,8918,9046,9053,9061,9076,9115,9122,9129,9160,9191,9222,9229,9236,9243,9250],{"type":993,"tag":1034,"props":8078,"children":8079},{"class":1036,"line":12},[8080,8084],{"type":993,"tag":1034,"props":8081,"children":8082},{"style":1040},[8083],{"type":998,"value":1043},{"type":993,"tag":1034,"props":8085,"children":8086},{"style":1046},[8087],{"type":998,"value":1049},{"type":993,"tag":1034,"props":8089,"children":8090},{"class":1036,"line":27},[8091],{"type":993,"tag":1034,"props":8092,"children":8093},{"emptyLinePlaceholder":13},[8094],{"type":998,"value":1057},{"type":993,"tag":1034,"props":8096,"children":8097},{"class":1036,"line":36},[8098,8102,8106,8110,8114,8118],{"type":993,"tag":1034,"props":8099,"children":8100},{"style":1040},[8101],{"type":998,"value":4403},{"type":993,"tag":1034,"props":8103,"children":8104},{"style":3705},[8105],{"type":998,"value":7538},{"type":993,"tag":1034,"props":8107,"children":8108},{"style":1046},[8109],{"type":998,"value":7543},{"type":993,"tag":1034,"props":8111,"children":8112},{"style":1040},[8113],{"type":998,"value":1079},{"type":993,"tag":1034,"props":8115,"children":8116},{"style":1090},[8117],{"type":998,"value":7552},{"type":993,"tag":1034,"props":8119,"children":8120},{"style":1046},[8121],{"type":998,"value":3731},{"type":993,"tag":1034,"props":8123,"children":8124},{"class":1036,"line":45},[8125],{"type":993,"tag":1034,"props":8126,"children":8127},{"style":1063},[8128],{"type":998,"value":8129},"    # Save students list to JSON file\n",{"type":993,"tag":1034,"props":8131,"children":8132},{"class":1036,"line":54},[8133,8137],{"type":993,"tag":1034,"props":8134,"children":8135},{"style":1040},[8136],{"type":998,"value":4442},{"type":993,"tag":1034,"props":8138,"children":8139},{"style":1046},[8140],{"type":998,"value":1721},{"type":993,"tag":1034,"props":8142,"children":8143},{"class":1036,"line":63},[8144,8148,8152,8156,8160,8164,8168,8172],{"type":993,"tag":1034,"props":8145,"children":8146},{"style":1040},[8147],{"type":998,"value":4454},{"type":993,"tag":1034,"props":8149,"children":8150},{"style":1123},[8151],{"type":998,"value":1682},{"type":993,"tag":1034,"props":8153,"children":8154},{"style":1046},[8155],{"type":998,"value":4463},{"type":993,"tag":1034,"props":8157,"children":8158},{"style":1090},[8159],{"type":998,"value":4468},{"type":993,"tag":1034,"props":8161,"children":8162},{"style":1046},[8163],{"type":998,"value":1705},{"type":993,"tag":1034,"props":8165,"children":8166},{"style":1040},[8167],{"type":998,"value":1710},{"type":993,"tag":1034,"props":8169,"children":8170},{"style":1713},[8171],{"type":998,"value":1716},{"type":993,"tag":1034,"props":8173,"children":8174},{"style":1046},[8175],{"type":998,"value":1721},{"type":993,"tag":1034,"props":8177,"children":8178},{"class":1036,"line":72},[8179,8184,8188,8192,8196,8200,8204],{"type":993,"tag":1034,"props":8180,"children":8181},{"style":1046},[8182],{"type":998,"value":8183},"            json.dump(students, ",{"type":993,"tag":1034,"props":8185,"children":8186},{"style":1713},[8187],{"type":998,"value":1734},{"type":993,"tag":1034,"props":8189,"children":8190},{"style":1046},[8191],{"type":998,"value":1153},{"type":993,"tag":1034,"props":8193,"children":8194},{"style":1713},[8195],{"type":998,"value":1743},{"type":993,"tag":1034,"props":8197,"children":8198},{"style":1040},[8199],{"type":998,"value":1079},{"type":993,"tag":1034,"props":8201,"children":8202},{"style":1123},[8203],{"type":998,"value":1752},{"type":993,"tag":1034,"props":8205,"children":8206},{"style":1046},[8207],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8209,"children":8210},{"class":1036,"line":81},[8211,8215,8219,8223,8228,8232,8236,8240,8245,8249,8253,8257,8261],{"type":993,"tag":1034,"props":8212,"children":8213},{"style":1123},[8214],{"type":998,"value":4524},{"type":993,"tag":1034,"props":8216,"children":8217},{"style":1046},[8218],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8220,"children":8221},{"style":1040},[8222],{"type":998,"value":1391},{"type":993,"tag":1034,"props":8224,"children":8225},{"style":1090},[8226],{"type":998,"value":8227},"\"Successfully saved ",{"type":993,"tag":1034,"props":8229,"children":8230},{"style":1123},[8231],{"type":998,"value":7864},{"type":993,"tag":1034,"props":8233,"children":8234},{"style":1046},[8235],{"type":998,"value":7869},{"type":993,"tag":1034,"props":8237,"children":8238},{"style":1123},[8239],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8241,"children":8242},{"style":1090},[8243],{"type":998,"value":8244}," students to ",{"type":993,"tag":1034,"props":8246,"children":8247},{"style":1123},[8248],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8250,"children":8251},{"style":1046},[8252],{"type":998,"value":4546},{"type":993,"tag":1034,"props":8254,"children":8255},{"style":1123},[8256],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8258,"children":8259},{"style":1090},[8260],{"type":998,"value":1349},{"type":993,"tag":1034,"props":8262,"children":8263},{"style":1046},[8264],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8266,"children":8267},{"class":1036,"line":91},[8268,8272,8276,8280],{"type":993,"tag":1034,"props":8269,"children":8270},{"style":1040},[8271],{"type":998,"value":4578},{"type":993,"tag":1034,"props":8273,"children":8274},{"style":1123},[8275],{"type":998,"value":4583},{"type":993,"tag":1034,"props":8277,"children":8278},{"style":1040},[8279],{"type":998,"value":4588},{"type":993,"tag":1034,"props":8281,"children":8282},{"style":1046},[8283],{"type":998,"value":4593},{"type":993,"tag":1034,"props":8285,"children":8286},{"class":1036,"line":100},[8287,8291,8295,8299,8304,8308,8312,8316,8320],{"type":993,"tag":1034,"props":8288,"children":8289},{"style":1123},[8290],{"type":998,"value":4524},{"type":993,"tag":1034,"props":8292,"children":8293},{"style":1046},[8294],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8296,"children":8297},{"style":1040},[8298],{"type":998,"value":1391},{"type":993,"tag":1034,"props":8300,"children":8301},{"style":1090},[8302],{"type":998,"value":8303},"\"Error saving students: ",{"type":993,"tag":1034,"props":8305,"children":8306},{"style":1123},[8307],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8309,"children":8310},{"style":1046},[8311],{"type":998,"value":4622},{"type":993,"tag":1034,"props":8313,"children":8314},{"style":1123},[8315],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8317,"children":8318},{"style":1090},[8319],{"type":998,"value":1349},{"type":993,"tag":1034,"props":8321,"children":8322},{"style":1046},[8323],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8325,"children":8326},{"class":1036,"line":109},[8327],{"type":993,"tag":1034,"props":8328,"children":8329},{"emptyLinePlaceholder":13},[8330],{"type":998,"value":1057},{"type":993,"tag":1034,"props":8332,"children":8333},{"class":1036,"line":118},[8334,8338,8342,8346,8350,8354],{"type":993,"tag":1034,"props":8335,"children":8336},{"style":1040},[8337],{"type":998,"value":4403},{"type":993,"tag":1034,"props":8339,"children":8340},{"style":3705},[8341],{"type":998,"value":7617},{"type":993,"tag":1034,"props":8343,"children":8344},{"style":1046},[8345],{"type":998,"value":4670},{"type":993,"tag":1034,"props":8347,"children":8348},{"style":1040},[8349],{"type":998,"value":1079},{"type":993,"tag":1034,"props":8351,"children":8352},{"style":1090},[8353],{"type":998,"value":7552},{"type":993,"tag":1034,"props":8355,"children":8356},{"style":1046},[8357],{"type":998,"value":3731},{"type":993,"tag":1034,"props":8359,"children":8360},{"class":1036,"line":127},[8361],{"type":993,"tag":1034,"props":8362,"children":8363},{"style":1063},[8364],{"type":998,"value":8365},"    # Load students from JSON file\n",{"type":993,"tag":1034,"props":8367,"children":8368},{"class":1036,"line":136},[8369,8373],{"type":993,"tag":1034,"props":8370,"children":8371},{"style":1040},[8372],{"type":998,"value":4442},{"type":993,"tag":1034,"props":8374,"children":8375},{"style":1046},[8376],{"type":998,"value":1721},{"type":993,"tag":1034,"props":8378,"children":8379},{"class":1036,"line":146},[8380,8384,8388,8392,8396,8400,8404,8408],{"type":993,"tag":1034,"props":8381,"children":8382},{"style":1040},[8383],{"type":998,"value":4454},{"type":993,"tag":1034,"props":8385,"children":8386},{"style":1123},[8387],{"type":998,"value":1682},{"type":993,"tag":1034,"props":8389,"children":8390},{"style":1046},[8391],{"type":998,"value":4463},{"type":993,"tag":1034,"props":8393,"children":8394},{"style":1090},[8395],{"type":998,"value":4783},{"type":993,"tag":1034,"props":8397,"children":8398},{"style":1046},[8399],{"type":998,"value":1705},{"type":993,"tag":1034,"props":8401,"children":8402},{"style":1040},[8403],{"type":998,"value":1710},{"type":993,"tag":1034,"props":8405,"children":8406},{"style":1713},[8407],{"type":998,"value":1716},{"type":993,"tag":1034,"props":8409,"children":8410},{"style":1046},[8411],{"type":998,"value":1721},{"type":993,"tag":1034,"props":8413,"children":8414},{"class":1036,"line":155},[8415,8420,8424,8428,8432],{"type":993,"tag":1034,"props":8416,"children":8417},{"style":1046},[8418],{"type":998,"value":8419},"            students ",{"type":993,"tag":1034,"props":8421,"children":8422},{"style":1040},[8423],{"type":998,"value":1079},{"type":993,"tag":1034,"props":8425,"children":8426},{"style":1046},[8427],{"type":998,"value":4816},{"type":993,"tag":1034,"props":8429,"children":8430},{"style":1713},[8431],{"type":998,"value":1734},{"type":993,"tag":1034,"props":8433,"children":8434},{"style":1046},[8435],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8437,"children":8438},{"class":1036,"line":164},[8439,8443],{"type":993,"tag":1034,"props":8440,"children":8441},{"style":1040},[8442],{"type":998,"value":3948},{"type":993,"tag":1034,"props":8444,"children":8445},{"style":1046},[8446],{"type":998,"value":8447}," students\n",{"type":993,"tag":1034,"props":8449,"children":8450},{"class":1036,"line":173},[8451,8455,8459],{"type":993,"tag":1034,"props":8452,"children":8453},{"style":1040},[8454],{"type":998,"value":4578},{"type":993,"tag":1034,"props":8456,"children":8457},{"style":1123},[8458],{"type":998,"value":5605},{"type":993,"tag":1034,"props":8460,"children":8461},{"style":1046},[8462],{"type":998,"value":1721},{"type":993,"tag":1034,"props":8464,"children":8465},{"class":1036,"line":182},[8466,8470,8474,8478,8483,8487,8491,8495,8500],{"type":993,"tag":1034,"props":8467,"children":8468},{"style":1123},[8469],{"type":998,"value":4524},{"type":993,"tag":1034,"props":8471,"children":8472},{"style":1046},[8473],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8475,"children":8476},{"style":1040},[8477],{"type":998,"value":1391},{"type":993,"tag":1034,"props":8479,"children":8480},{"style":1090},[8481],{"type":998,"value":8482},"\"File ",{"type":993,"tag":1034,"props":8484,"children":8485},{"style":1123},[8486],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8488,"children":8489},{"style":1046},[8490],{"type":998,"value":4546},{"type":993,"tag":1034,"props":8492,"children":8493},{"style":1123},[8494],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8496,"children":8497},{"style":1090},[8498],{"type":998,"value":8499}," not found. Starting with empty list.\"",{"type":993,"tag":1034,"props":8501,"children":8502},{"style":1046},[8503],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8505,"children":8506},{"class":1036,"line":191},[8507,8511],{"type":993,"tag":1034,"props":8508,"children":8509},{"style":1040},[8510],{"type":998,"value":3948},{"type":993,"tag":1034,"props":8512,"children":8513},{"style":1046},[8514],{"type":998,"value":8515}," []\n",{"type":993,"tag":1034,"props":8517,"children":8518},{"class":1036,"line":201},[8519,8523],{"type":993,"tag":1034,"props":8520,"children":8521},{"style":1040},[8522],{"type":998,"value":4578},{"type":993,"tag":1034,"props":8524,"children":8525},{"style":1046},[8526],{"type":998,"value":5637},{"type":993,"tag":1034,"props":8528,"children":8529},{"class":1036,"line":210},[8530,8534,8538,8542,8547,8551,8555,8559,8564],{"type":993,"tag":1034,"props":8531,"children":8532},{"style":1123},[8533],{"type":998,"value":4524},{"type":993,"tag":1034,"props":8535,"children":8536},{"style":1046},[8537],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8539,"children":8540},{"style":1040},[8541],{"type":998,"value":1391},{"type":993,"tag":1034,"props":8543,"children":8544},{"style":1090},[8545],{"type":998,"value":8546},"\"Error reading JSON from ",{"type":993,"tag":1034,"props":8548,"children":8549},{"style":1123},[8550],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8552,"children":8553},{"style":1046},[8554],{"type":998,"value":4546},{"type":993,"tag":1034,"props":8556,"children":8557},{"style":1123},[8558],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8560,"children":8561},{"style":1090},[8562],{"type":998,"value":8563},". Starting with empty list.\"",{"type":993,"tag":1034,"props":8565,"children":8566},{"style":1046},[8567],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8569,"children":8570},{"class":1036,"line":219},[8571,8575],{"type":993,"tag":1034,"props":8572,"children":8573},{"style":1040},[8574],{"type":998,"value":3948},{"type":993,"tag":1034,"props":8576,"children":8577},{"style":1046},[8578],{"type":998,"value":8515},{"type":993,"tag":1034,"props":8580,"children":8581},{"class":1036,"line":228},[8582],{"type":993,"tag":1034,"props":8583,"children":8584},{"emptyLinePlaceholder":13},[8585],{"type":998,"value":1057},{"type":993,"tag":1034,"props":8587,"children":8588},{"class":1036,"line":238},[8589,8593,8597],{"type":993,"tag":1034,"props":8590,"children":8591},{"style":1040},[8592],{"type":998,"value":4403},{"type":993,"tag":1034,"props":8594,"children":8595},{"style":3705},[8596],{"type":998,"value":7707},{"type":993,"tag":1034,"props":8598,"children":8599},{"style":1046},[8600],{"type":998,"value":7712},{"type":993,"tag":1034,"props":8602,"children":8603},{"class":1036,"line":247},[8604],{"type":993,"tag":1034,"props":8605,"children":8606},{"style":1063},[8607],{"type":998,"value":8608},"    # Create student dictionary\n",{"type":993,"tag":1034,"props":8610,"children":8611},{"class":1036,"line":256},[8612,8617,8621],{"type":993,"tag":1034,"props":8613,"children":8614},{"style":1046},[8615],{"type":998,"value":8616},"    student ",{"type":993,"tag":1034,"props":8618,"children":8619},{"style":1040},[8620],{"type":998,"value":1079},{"type":993,"tag":1034,"props":8622,"children":8623},{"style":1046},[8624],{"type":998,"value":1084},{"type":993,"tag":1034,"props":8626,"children":8627},{"class":1036,"line":265},[8628,8632],{"type":993,"tag":1034,"props":8629,"children":8630},{"style":1090},[8631],{"type":998,"value":1572},{"type":993,"tag":1034,"props":8633,"children":8634},{"style":1046},[8635],{"type":998,"value":8636},": name,\n",{"type":993,"tag":1034,"props":8638,"children":8639},{"class":1036,"line":274},[8640,8645],{"type":993,"tag":1034,"props":8641,"children":8642},{"style":1090},[8643],{"type":998,"value":8644},"        \"age\"",{"type":993,"tag":1034,"props":8646,"children":8647},{"style":1046},[8648],{"type":998,"value":8649},": age,\n",{"type":993,"tag":1034,"props":8651,"children":8652},{"class":1036,"line":284},[8653,8658],{"type":993,"tag":1034,"props":8654,"children":8655},{"style":1090},[8656],{"type":998,"value":8657},"        \"grade\"",{"type":993,"tag":1034,"props":8659,"children":8660},{"style":1046},[8661],{"type":998,"value":8662},": grade,\n",{"type":993,"tag":1034,"props":8664,"children":8665},{"class":1036,"line":293},[8666,8671,8675,8680,8685,8689],{"type":993,"tag":1034,"props":8667,"children":8668},{"style":1090},[8669],{"type":998,"value":8670},"        \"id\"",{"type":993,"tag":1034,"props":8672,"children":8673},{"style":1046},[8674],{"type":998,"value":1098},{"type":993,"tag":1034,"props":8676,"children":8677},{"style":1123},[8678],{"type":998,"value":8679},"len",{"type":993,"tag":1034,"props":8681,"children":8682},{"style":1046},[8683],{"type":998,"value":8684},"(students) ",{"type":993,"tag":1034,"props":8686,"children":8687},{"style":1040},[8688],{"type":998,"value":3299},{"type":993,"tag":1034,"props":8690,"children":8691},{"style":1123},[8692],{"type":998,"value":8693}," 1\n",{"type":993,"tag":1034,"props":8695,"children":8696},{"class":1036,"line":302},[8697],{"type":993,"tag":1034,"props":8698,"children":8699},{"style":1046},[8700],{"type":998,"value":1647},{"type":993,"tag":1034,"props":8702,"children":8703},{"class":1036,"line":311},[8704],{"type":993,"tag":1034,"props":8705,"children":8706},{"style":1063},[8707],{"type":998,"value":8708},"    # Add to students list\n",{"type":993,"tag":1034,"props":8710,"children":8711},{"class":1036,"line":320},[8712],{"type":993,"tag":1034,"props":8713,"children":8714},{"style":1046},[8715],{"type":998,"value":8716},"    students.append(student)\n",{"type":993,"tag":1034,"props":8718,"children":8719},{"class":1036,"line":329},[8720,8724,8728,8732,8737,8741,8746,8750,8754],{"type":993,"tag":1034,"props":8721,"children":8722},{"style":1123},[8723],{"type":998,"value":5242},{"type":993,"tag":1034,"props":8725,"children":8726},{"style":1046},[8727],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8729,"children":8730},{"style":1040},[8731],{"type":998,"value":1391},{"type":993,"tag":1034,"props":8733,"children":8734},{"style":1090},[8735],{"type":998,"value":8736},"\"Added student: ",{"type":993,"tag":1034,"props":8738,"children":8739},{"style":1123},[8740],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8742,"children":8743},{"style":1046},[8744],{"type":998,"value":8745},"name",{"type":993,"tag":1034,"props":8747,"children":8748},{"style":1123},[8749],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8751,"children":8752},{"style":1090},[8753],{"type":998,"value":1349},{"type":993,"tag":1034,"props":8755,"children":8756},{"style":1046},[8757],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8759,"children":8760},{"class":1036,"line":338},[8761],{"type":993,"tag":1034,"props":8762,"children":8763},{"emptyLinePlaceholder":13},[8764],{"type":998,"value":1057},{"type":993,"tag":1034,"props":8766,"children":8767},{"class":1036,"line":347},[8768,8772,8776],{"type":993,"tag":1034,"props":8769,"children":8770},{"style":1040},[8771],{"type":998,"value":4403},{"type":993,"tag":1034,"props":8773,"children":8774},{"style":3705},[8775],{"type":998,"value":7770},{"type":993,"tag":1034,"props":8777,"children":8778},{"style":1046},[8779],{"type":998,"value":7775},{"type":993,"tag":1034,"props":8781,"children":8782},{"class":1036,"line":356},[8783],{"type":993,"tag":1034,"props":8784,"children":8785},{"style":1063},[8786],{"type":998,"value":8787},"    # Print all students in a readable format\n",{"type":993,"tag":1034,"props":8789,"children":8790},{"class":1036,"line":365},[8791,8796,8800],{"type":993,"tag":1034,"props":8792,"children":8793},{"style":1040},[8794],{"type":998,"value":8795},"    if",{"type":993,"tag":1034,"props":8797,"children":8798},{"style":1040},[8799],{"type":998,"value":4713},{"type":993,"tag":1034,"props":8801,"children":8802},{"style":1046},[8803],{"type":998,"value":8804}," students:\n",{"type":993,"tag":1034,"props":8806,"children":8807},{"class":1036,"line":374},[8808,8812,8816,8821],{"type":993,"tag":1034,"props":8809,"children":8810},{"style":1123},[8811],{"type":998,"value":4524},{"type":993,"tag":1034,"props":8813,"children":8814},{"style":1046},[8815],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8817,"children":8818},{"style":1090},[8819],{"type":998,"value":8820},"\"No students found.\"",{"type":993,"tag":1034,"props":8822,"children":8823},{"style":1046},[8824],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8826,"children":8827},{"class":1036,"line":384},[8828],{"type":993,"tag":1034,"props":8829,"children":8830},{"style":1040},[8831],{"type":998,"value":8832},"        return\n",{"type":993,"tag":1034,"props":8834,"children":8835},{"class":1036,"line":393},[8836],{"type":993,"tag":1034,"props":8837,"children":8838},{"style":1046},[8839],{"type":998,"value":3747},{"type":993,"tag":1034,"props":8841,"children":8842},{"class":1036,"line":402},[8843,8847,8851,8855,8859,8864],{"type":993,"tag":1034,"props":8844,"children":8845},{"style":1123},[8846],{"type":998,"value":5242},{"type":993,"tag":1034,"props":8848,"children":8849},{"style":1046},[8850],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8852,"children":8853},{"style":1090},[8854],{"type":998,"value":1349},{"type":993,"tag":1034,"props":8856,"children":8857},{"style":1123},[8858],{"type":998,"value":1354},{"type":993,"tag":1034,"props":8860,"children":8861},{"style":1090},[8862],{"type":998,"value":8863},"Student Records:\"",{"type":993,"tag":1034,"props":8865,"children":8866},{"style":1046},[8867],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8869,"children":8870},{"class":1036,"line":411},[8871,8875,8879,8884,8889,8894],{"type":993,"tag":1034,"props":8872,"children":8873},{"style":1123},[8874],{"type":998,"value":5242},{"type":993,"tag":1034,"props":8876,"children":8877},{"style":1046},[8878],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8880,"children":8881},{"style":1090},[8882],{"type":998,"value":8883},"\"-\"",{"type":993,"tag":1034,"props":8885,"children":8886},{"style":1040},[8887],{"type":998,"value":8888}," *",{"type":993,"tag":1034,"props":8890,"children":8891},{"style":1123},[8892],{"type":998,"value":8893}," 30",{"type":993,"tag":1034,"props":8895,"children":8896},{"style":1046},[8897],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8899,"children":8900},{"class":1036,"line":420},[8901,8905,8910,8914],{"type":993,"tag":1034,"props":8902,"children":8903},{"style":1040},[8904],{"type":998,"value":5263},{"type":993,"tag":1034,"props":8906,"children":8907},{"style":1046},[8908],{"type":998,"value":8909}," student ",{"type":993,"tag":1034,"props":8911,"children":8912},{"style":1040},[8913],{"type":998,"value":5273},{"type":993,"tag":1034,"props":8915,"children":8916},{"style":1046},[8917],{"type":998,"value":8804},{"type":993,"tag":1034,"props":8919,"children":8920},{"class":1036,"line":429},[8921,8925,8929,8933,8938,8942,8947,8952,8956,8960,8965,8969,8973,8978,8982,8986,8991,8995,8999,9004,9008,9012,9017,9021,9025,9030,9034,9038,9042],{"type":993,"tag":1034,"props":8922,"children":8923},{"style":1123},[8924],{"type":998,"value":4524},{"type":993,"tag":1034,"props":8926,"children":8927},{"style":1046},[8928],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8930,"children":8931},{"style":1040},[8932],{"type":998,"value":1391},{"type":993,"tag":1034,"props":8934,"children":8935},{"style":1090},[8936],{"type":998,"value":8937},"\"ID: ",{"type":993,"tag":1034,"props":8939,"children":8940},{"style":1123},[8941],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8943,"children":8944},{"style":1046},[8945],{"type":998,"value":8946},"student[",{"type":993,"tag":1034,"props":8948,"children":8949},{"style":1090},[8950],{"type":998,"value":8951},"'id'",{"type":993,"tag":1034,"props":8953,"children":8954},{"style":1046},[8955],{"type":998,"value":1416},{"type":993,"tag":1034,"props":8957,"children":8958},{"style":1123},[8959],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8961,"children":8962},{"style":1090},[8963],{"type":998,"value":8964},", Name: ",{"type":993,"tag":1034,"props":8966,"children":8967},{"style":1123},[8968],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8970,"children":8971},{"style":1046},[8972],{"type":998,"value":8946},{"type":993,"tag":1034,"props":8974,"children":8975},{"style":1090},[8976],{"type":998,"value":8977},"'name'",{"type":993,"tag":1034,"props":8979,"children":8980},{"style":1046},[8981],{"type":998,"value":1416},{"type":993,"tag":1034,"props":8983,"children":8984},{"style":1123},[8985],{"type":998,"value":1421},{"type":993,"tag":1034,"props":8987,"children":8988},{"style":1090},[8989],{"type":998,"value":8990},", Age: ",{"type":993,"tag":1034,"props":8992,"children":8993},{"style":1123},[8994],{"type":998,"value":1401},{"type":993,"tag":1034,"props":8996,"children":8997},{"style":1046},[8998],{"type":998,"value":8946},{"type":993,"tag":1034,"props":9000,"children":9001},{"style":1090},[9002],{"type":998,"value":9003},"'age'",{"type":993,"tag":1034,"props":9005,"children":9006},{"style":1046},[9007],{"type":998,"value":1416},{"type":993,"tag":1034,"props":9009,"children":9010},{"style":1123},[9011],{"type":998,"value":1421},{"type":993,"tag":1034,"props":9013,"children":9014},{"style":1090},[9015],{"type":998,"value":9016},", Grade: ",{"type":993,"tag":1034,"props":9018,"children":9019},{"style":1123},[9020],{"type":998,"value":1401},{"type":993,"tag":1034,"props":9022,"children":9023},{"style":1046},[9024],{"type":998,"value":8946},{"type":993,"tag":1034,"props":9026,"children":9027},{"style":1090},[9028],{"type":998,"value":9029},"'grade'",{"type":993,"tag":1034,"props":9031,"children":9032},{"style":1046},[9033],{"type":998,"value":1416},{"type":993,"tag":1034,"props":9035,"children":9036},{"style":1123},[9037],{"type":998,"value":1421},{"type":993,"tag":1034,"props":9039,"children":9040},{"style":1090},[9041],{"type":998,"value":1349},{"type":993,"tag":1034,"props":9043,"children":9044},{"style":1046},[9045],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9047,"children":9048},{"class":1036,"line":438},[9049],{"type":993,"tag":1034,"props":9050,"children":9051},{"emptyLinePlaceholder":13},[9052],{"type":998,"value":1057},{"type":993,"tag":1034,"props":9054,"children":9055},{"class":1036,"line":447},[9056],{"type":993,"tag":1034,"props":9057,"children":9058},{"style":1063},[9059],{"type":998,"value":9060},"# Test your functions\n",{"type":993,"tag":1034,"props":9062,"children":9063},{"class":1036,"line":457},[9064,9068,9072],{"type":993,"tag":1034,"props":9065,"children":9066},{"style":1046},[9067],{"type":998,"value":7830},{"type":993,"tag":1034,"props":9069,"children":9070},{"style":1040},[9071],{"type":998,"value":1079},{"type":993,"tag":1034,"props":9073,"children":9074},{"style":1046},[9075],{"type":998,"value":7839},{"type":993,"tag":1034,"props":9077,"children":9078},{"class":1036,"line":466},[9079,9083,9087,9091,9095,9099,9103,9107,9111],{"type":993,"tag":1034,"props":9080,"children":9081},{"style":1123},[9082],{"type":998,"value":1250},{"type":993,"tag":1034,"props":9084,"children":9085},{"style":1046},[9086],{"type":998,"value":1255},{"type":993,"tag":1034,"props":9088,"children":9089},{"style":1040},[9090],{"type":998,"value":1391},{"type":993,"tag":1034,"props":9092,"children":9093},{"style":1090},[9094],{"type":998,"value":7859},{"type":993,"tag":1034,"props":9096,"children":9097},{"style":1123},[9098],{"type":998,"value":7864},{"type":993,"tag":1034,"props":9100,"children":9101},{"style":1046},[9102],{"type":998,"value":7869},{"type":993,"tag":1034,"props":9104,"children":9105},{"style":1123},[9106],{"type":998,"value":1421},{"type":993,"tag":1034,"props":9108,"children":9109},{"style":1090},[9110],{"type":998,"value":7878},{"type":993,"tag":1034,"props":9112,"children":9113},{"style":1046},[9114],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9116,"children":9117},{"class":1036,"line":475},[9118],{"type":993,"tag":1034,"props":9119,"children":9120},{"emptyLinePlaceholder":13},[9121],{"type":998,"value":1057},{"type":993,"tag":1034,"props":9123,"children":9124},{"class":1036,"line":484},[9125],{"type":993,"tag":1034,"props":9126,"children":9127},{"style":1063},[9128],{"type":998,"value":7897},{"type":993,"tag":1034,"props":9130,"children":9131},{"class":1036,"line":493},[9132,9136,9140,9144,9148,9152,9156],{"type":993,"tag":1034,"props":9133,"children":9134},{"style":1046},[9135],{"type":998,"value":7905},{"type":993,"tag":1034,"props":9137,"children":9138},{"style":1090},[9139],{"type":998,"value":3079},{"type":993,"tag":1034,"props":9141,"children":9142},{"style":1046},[9143],{"type":998,"value":1153},{"type":993,"tag":1034,"props":9145,"children":9146},{"style":1123},[9147],{"type":998,"value":7918},{"type":993,"tag":1034,"props":9149,"children":9150},{"style":1046},[9151],{"type":998,"value":1153},{"type":993,"tag":1034,"props":9153,"children":9154},{"style":1090},[9155],{"type":998,"value":7927},{"type":993,"tag":1034,"props":9157,"children":9158},{"style":1046},[9159],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9161,"children":9162},{"class":1036,"line":502},[9163,9167,9171,9175,9179,9183,9187],{"type":993,"tag":1034,"props":9164,"children":9165},{"style":1046},[9166],{"type":998,"value":7905},{"type":993,"tag":1034,"props":9168,"children":9169},{"style":1090},[9170],{"type":998,"value":3137},{"type":993,"tag":1034,"props":9172,"children":9173},{"style":1046},[9174],{"type":998,"value":1153},{"type":993,"tag":1034,"props":9176,"children":9177},{"style":1123},[9178],{"type":998,"value":7951},{"type":993,"tag":1034,"props":9180,"children":9181},{"style":1046},[9182],{"type":998,"value":1153},{"type":993,"tag":1034,"props":9184,"children":9185},{"style":1090},[9186],{"type":998,"value":7960},{"type":993,"tag":1034,"props":9188,"children":9189},{"style":1046},[9190],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9192,"children":9193},{"class":1036,"line":511},[9194,9198,9202,9206,9210,9214,9218],{"type":993,"tag":1034,"props":9195,"children":9196},{"style":1046},[9197],{"type":998,"value":7905},{"type":993,"tag":1034,"props":9199,"children":9200},{"style":1090},[9201],{"type":998,"value":7976},{"type":993,"tag":1034,"props":9203,"children":9204},{"style":1046},[9205],{"type":998,"value":1153},{"type":993,"tag":1034,"props":9207,"children":9208},{"style":1123},[9209],{"type":998,"value":4126},{"type":993,"tag":1034,"props":9211,"children":9212},{"style":1046},[9213],{"type":998,"value":1153},{"type":993,"tag":1034,"props":9215,"children":9216},{"style":1090},[9217],{"type":998,"value":7993},{"type":993,"tag":1034,"props":9219,"children":9220},{"style":1046},[9221],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9223,"children":9224},{"class":1036,"line":520},[9225],{"type":993,"tag":1034,"props":9226,"children":9227},{"emptyLinePlaceholder":13},[9228],{"type":998,"value":1057},{"type":993,"tag":1034,"props":9230,"children":9231},{"class":1036,"line":530},[9232],{"type":993,"tag":1034,"props":9233,"children":9234},{"style":1063},[9235],{"type":998,"value":8012},{"type":993,"tag":1034,"props":9237,"children":9238},{"class":1036,"line":539},[9239],{"type":993,"tag":1034,"props":9240,"children":9241},{"style":1046},[9242],{"type":998,"value":8020},{"type":993,"tag":1034,"props":9244,"children":9245},{"class":1036,"line":548},[9246],{"type":993,"tag":1034,"props":9247,"children":9248},{"style":1046},[9249],{"type":998,"value":8028},{"type":993,"tag":1034,"props":9251,"children":9252},{"class":1036,"line":557},[9253,9257,9261,9265],{"type":993,"tag":1034,"props":9254,"children":9255},{"style":1123},[9256],{"type":998,"value":1250},{"type":993,"tag":1034,"props":9258,"children":9259},{"style":1046},[9260],{"type":998,"value":1255},{"type":993,"tag":1034,"props":9262,"children":9263},{"style":1090},[9264],{"type":998,"value":8044},{"type":993,"tag":1034,"props":9266,"children":9267},{"style":1046},[9268],{"type":998,"value":1265},{"type":993,"tag":1001,"props":9270,"children":9271},{},[9272],{"type":993,"tag":1815,"props":9273,"children":9274},{},[9275],{"type":998,"value":9276},"Key Learning Points:",{"type":993,"tag":1821,"props":9278,"children":9279},{},[9280,9292,9303,9313,9324],{"type":993,"tag":1825,"props":9281,"children":9282},{},[9283,9285,9290],{"type":998,"value":9284},"📌 ",{"type":993,"tag":1815,"props":9286,"children":9287},{},[9288],{"type":998,"value":9289},"json.dump()",{"type":998,"value":9291},": Write Python objects to JSON files",{"type":993,"tag":1825,"props":9293,"children":9294},{},[9295,9296,9301],{"type":998,"value":9284},{"type":993,"tag":1815,"props":9297,"children":9298},{},[9299],{"type":998,"value":9300},"json.load()",{"type":998,"value":9302},": Read JSON files into Python objects",{"type":993,"tag":1825,"props":9304,"children":9305},{},[9306,9307,9311],{"type":998,"value":9284},{"type":993,"tag":1815,"props":9308,"children":9309},{},[9310],{"type":998,"value":7463},{"type":998,"value":9312},": Use try/except for FileNotFoundError and JSONDecodeError",{"type":993,"tag":1825,"props":9314,"children":9315},{},[9316,9317,9322],{"type":998,"value":9284},{"type":993,"tag":1815,"props":9318,"children":9319},{},[9320],{"type":998,"value":9321},"File operations",{"type":998,"value":9323},": Use 'w' for writing, 'r' for reading JSON files",{"type":993,"tag":1825,"props":9325,"children":9326},{},[9327,9328,9333],{"type":998,"value":9284},{"type":993,"tag":1815,"props":9329,"children":9330},{},[9331],{"type":998,"value":9332},"Data structure",{"type":998,"value":9334},": Use lists and dictionaries for JSON-compatible data",{"type":993,"tag":1001,"props":9336,"children":9337},{},[9338,9340,9346],{"type":998,"value":9339},"Learn more about ",{"type":993,"tag":9341,"props":9342,"children":9343},"a",{"href":772},[9344],{"type":998,"value":9345},"package management",{"type":998,"value":9347}," to handle external libraries and dependencies in your JSON applications.",{"type":993,"tag":1793,"props":9349,"children":9351},{"id":9350},"test-your-knowledge",[9352],{"type":998,"value":9353},"Test Your Knowledge",{"type":993,"tag":1001,"props":9355,"children":9356},{},[9357],{"type":998,"value":9358},"Test what you've learned about JSON data handling:",{"type":993,"tag":9360,"props":9361,"children":9365},"redirect-button",{"icon":9362,"label":9363,"url":9364},"pi pi-send","Take Quiz","/tutorial-quiz/python/json-data",[],{"type":993,"tag":1793,"props":9367,"children":9369},{"id":9368},"whats-next",[9370],{"type":998,"value":9371},"What's Next?",{"type":993,"tag":1001,"props":9373,"children":9374},{},[9375],{"type":998,"value":9376},"Now that you can handle JSON data effectively, you're ready to explore package management. Learn how to install external libraries, manage dependencies, and create virtual environments for your Python projects.",{"type":993,"tag":1001,"props":9378,"children":9379},{},[9380,9382,9386],{"type":998,"value":9381},"Ready to continue? Check out our lesson on ",{"type":993,"tag":9341,"props":9383,"children":9384},{"href":772},[9385],{"type":998,"value":773},{"type":998,"value":3721},{"type":993,"tag":9388,"props":9389,"children":9390},"style",{},[9391],{"type":998,"value":9392},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}html.app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}",{"title":8,"searchDepth":36,"depth":36,"links":9394},[9395,9398,9402,9406,9409,9410],{"id":1795,"depth":27,"text":1798,"children":9396},[9397],{"id":2053,"depth":36,"text":2056},{"id":2965,"depth":27,"text":2968,"children":9399},[9400,9401],{"id":2976,"depth":36,"text":2979},{"id":3625,"depth":36,"text":3628},{"id":4336,"depth":27,"text":4339,"children":9403},[9404,9405],{"id":4347,"depth":36,"text":4350},{"id":5339,"depth":36,"text":5342},{"id":7190,"depth":27,"text":7193,"children":9407},[9408],{"id":8051,"depth":36,"text":8054},{"id":9350,"depth":27,"text":9353},{"id":9368,"depth":27,"text":9371},1782373749037]