Blog

Page 248 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How do I handle newlines in JSON?
javascriptjsonnewline

How do I handle newlines in JSON?

Published on September 2, 2023

# How to Handle Newlines in JSON: A Simple Guide 😄📝 So, you're working with JSON and you've encountered a little problem with newlines. Don't worry, you're not alone! It's a common issue that can lead to frustrating errors. But fear not, we've got you c

Cover Image for ASP.NET Core middleware vs filters
c#

ASP.NET Core middleware vs filters

Published on September 2, 2023

📝💡 ASP.NET Core Middleware vs Filters: Understanding When to Use Each One Are you feeling confused about when to use ASP.NET Core middleware and when to use filters? 🤔 Don't worry, you're not alone! Many developers struggle with understanding the diffe

Cover Image for What are the differences between json and simplejson Python modules?
jsonpython

What are the differences between json and simplejson Python modules?

Published on September 2, 2023

# JSON vs SimpleJSON: Exploring the Differences So you want to learn about the differences between the `json` and `simplejson` Python modules? You've come to the right place! 🚀 ## What is JSON? JSON (JavaScript Object Notation) is a popular data interc

Cover Image for How to read an external local JSON file in JavaScript?
javascriptjson

How to read an external local JSON file in JavaScript?

Published on September 2, 2023

# How to Read an External Local JSON File in JavaScript? 📝 So you have a JSON file saved on your local system and you want to read it using JavaScript? No worries, we've got you covered! 😄 First, let's take a look at the JSON file you have: ```json {

Cover Image for How to upload a file and JSON data in Postman?
javajsonpostmanspring-mvc

How to upload a file and JSON data in Postman?

Published on September 2, 2023

📝💻 How to Upload a File and JSON Data in Postman: A Complete Guide 🚀 Are you using Spring MVC and struggling with uploading a file and JSON data using Postman? No worries, we've got you covered! In this guide, we'll walk you through the process step by

Cover Image for Parsing a JSON string in Ruby
json

Parsing a JSON string in Ruby

Published on September 2, 2023

# How to Parse a JSON string in Ruby Parsing a JSON string in Ruby can seem like a daunting task, but fear not! We're here to guide you through the process step-by-step. 🚀 ## The Problem Let's say you have a string containing a JSON object, and you wan

Cover Image for SyntaxError: Unexpected token o in JSON at position 1
angularjsjavascriptjson

SyntaxError: Unexpected token o in JSON at position 1

Published on September 2, 2023

📝 **Blog Post: How to Solve SyntaxError: Unexpected token o in JSON** Hey there, fellow coders! 👋 Have you ever come across the dreaded `SyntaxError: Unexpected token o in JSON at position 1` error while parsing JSON data? 😱 Don't worry, you're not al

Cover Image for Using ChildActionOnly in MVC
c#

Using ChildActionOnly in MVC

Published on September 2, 2023

# 🧩 Demystifying the `ChildActionOnly` Attribute in MVC 🎮 If you're an MVC developer, you've probably come across the `ChildActionOnly` attribute. It's one of those things that may seem a bit confusing at first, but fear not! I'm here to demystify it fo

Cover Image for How to dump a dict to a JSON file?
dictionaryjsonpython

How to dump a dict to a JSON file?

Published on September 2, 2023

## How to Dump a Dict to a JSON File: A Pythonic Way 🐍 So, you've got a dictionary that you want to dump into a JSON file in a specific format. Perhaps you want to generate a `d3` treemap, and you need the data to be structured a certain way. Don't worry

Blog | Matheus Mello