-
python 序列化成json 乱码问题的解决
今天又网友问到, 在python 下将一个对象序列化成 json 时经常会报乱码, 甚至会报错, 的确会出现这种情况,因为在python 中默认使用的是 simplejson 库。但其实是可以通过配置选项解决的, 下面是我写的一个公共的转换对象到json与从json 转换到对象的公共类:
Date: 2014-03-06 View: 1520
-
python2.7 json 转换日期的处理
python2.7中 集成了json的处理(simplejson),但在实际应用中,从mysql查询出来的数据,通常有日期格式,这时候,会报一个错:TypeError: datetime.datetime(2007, 7, 23, 12, 24, 25) is not JSON serializable说明日期转换出问题,后来再网上找到了解决办法。
Date: 2012-02-03 View: 1520
-
Jackson : was expecting double-quote to start field name
A simple example to use Jackson to convert a JSON string to a Map.
Date: 2019-08-18 View: 1520
-
How to access JSON object in JavaScript
Below is a JSON string.
Date: 2019-08-17 View: 1520
-
jQuery loop over JSON string $.each example
Review a simple jQuery example to loop over a JavaScript array object.
Date: 2019-08-17 View: 1520
-
jQuery Ajax request return 200 OK but error event is fired?
Review a jQuery Ajax form submit.
Date: 2019-08-17 View: 1520
-
Jackson 2 Convert Java Object to / from JSON
In this tutorial, we will show you how to use Jackson 2.x to convert Java objects to / from a JSON.
Date: 2019-08-17 View: 1520
-
cURL Post JSON data to Spring REST
This article shows you how to use cURL command to POST JSON data to a Spring REST API.
Date: 2019-08-11 View: 1520
-
cURL POST request examples
Some cURL POST request examples for self reference.
Date: 2019-08-11 View: 1520
-
Spring Boot Ajax example
This article will show you how to use jQuery.ajax to send a HTML form request to a Spring REST API and return a JSON response.
Date: 2019-08-11 View: 1520
-
How to convert JavaScript Array to JSON
In JavaScript, you can use JSON.stringify to convert an array or values into a JSON formatted string.
Date: 2019-08-11 View: 1520
-
cURL – PUT request examples
Example to use cURL -X PUT to send a PUT (update) request to update the user’s name and email.
Date: 2019-08-11 View: 1520
-
cURL post JSON data on Windows
On Windows, the key to send JSON data is double-quotes like this
Date: 2019-08-11 View: 1520
-
JSONAssert How to unit test JSON data
In Java, we can use JSONAssert to unit test JSON data easily.
Date: 2019-08-11 View: 1520
-
Spring REST Error Handling Example
In this article, we will show you error handling in Spring Boot REST application.
Date: 2019-08-11 View: 1520