Skip to content
June 27, 2025

Pupli

  • .NET
    • .NET Core
    • ASP.NET
    • ASP.NET Blazor
    • ASP.NET MVC
    • ASP.NET Web APIs
    • ASP.NET Worker Services
    • async/await
    • AutoMapper
    • BenchmarkDotNet
    • C#
    • Dapper
    • DateTime
    • Dependency Injection
    • Entity Framework
    • EPPlus
    • FluentEmail
    • gRPC
    • Hangfire
    • HttpClient
    • Identity
    • Image Processing
    • MailKit
    • MassTransit
    • MediatR
    • MessagePipe
    • ML.NET
    • MongoDB
    • NuGet
    • Polly
    • PostgreSQL
    • Protobuf
    • Quartz.NET
    • Resources
    • RestSharp
    • Security
    • Selenium
    • Seq
    • Serilog
    • Sharp7
    • SharpVectors
    • SharpZipLib
    • SignalR
    • SOAP
    • StackExchange.Redis
    • String
    • Syncfusion
    • Windows
    • WPF
    • XML
  • C/C++
    • Qt
  • Database
    • Hibernate
    • MongoDB
    • MySQL
    • PostgreSQL
    • Redis
  • Electrical
    • PLC
  • Go
  • Java
    • Apache POI
    • Gradle
    • Groovy
    • Gson
    • Java
    • Joda
    • Kotlin
    • OkHttp
    • Quartz
    • RxJava
    • Spring
  • JavaScript
    • Express
    • JavaScript
    • Moment.js
    • Mongoose
    • Node.js
    • PM2
    • RxJS
    • Socket.IO
    • TypeScript
    • Yarn
  • Linux
    • Apache
    • Bash
    • Fedora
    • Git
    • Kali
    • Linux
    • Manjaro
    • Mint
    • Nginx
    • PDF
    • SSH
    • Tools
      • Certbot
      • cron
      • cURL
      • DNS
      • FFmpeg
      • GPG
      • grep
      • HAProxy
      • ip
      • iptables
      • Nmap
      • ProxyChains
      • rsync
      • sch
      • Superset
      • systemd
      • ufw
    • Ubuntu
    • VPN
  • Math
    • Formula
  • Microsoft
    • BAT
    • BI
    • Excel
    • PowerShell
    • Windows
      • DNS
    • Windows Server
    • WSL
  • Mobile
    • Android
    • Ionic
  • MQ
    • MQTT
    • RabbitMQ
  • Network
    • Cisco
    • Network+
  • Programming
    • Architectural Patterns
  • Python
    • Bokeh
    • Celery
    • Django
    • dnspython
    • Flask
    • Gunicorn
    • Network
    • NumPy
    • OpenCV
    • openpyxl
    • Pandas
    • PIL
    • psutil
    • PyInstaller
    • PyScreeze
    • PySide
    • pytesseract
    • Python
    • requests
    • Selenium
    • SQLAlchemy
    • SQLite
    • Telegram Bot
    • Virtualenv
    • Windows
  • Tools
    • GitHub Copilot
  • Web
    • Angular
    • Bootstrap
    • HTML
    • Next.js
    • PWA
    • React
    • Tailwind CSS
    • Vite
    • WordPress
    • XPath
    • CSS
Main Menu

Tag: json

Serialize Object to JSON in Java

May 31, 2016
Customer customer = new Customer();
Product product = new Product();

// Set your values ...

Gson gson = new Gson();
String json = gson.toJson();

Curtomer deserialized = gson.fromJson(json, Customer.class);

References :
http://stackoverflow.com/questions/10930624/creating-json-objects-directly-from-model-classes-in-java

JSON encoder and decoder in Python

November 20, 2015

json.JSONDecoder

JSON Python
object dict
array list
string str
number (int) int
number (real) float
true True
false False
null None

json.JSONEncoder

Python JSON
dict object
list, tuple array
str string
int, float, int- & float-derived Enums number
True true
False false
None null
Source :
https://docs.python.org/3/library/json.html

Posts pagination

Previous 1 2
Copyright © 2025 Pupli.
Powered by WordPress and HitMag.