|
|
|
|
|
by apendleton
4085 days ago
|
|
> So I can't serialize things with ultrajson that aren't serializable? I must be missing something in this statement. This might not be what they're talking about, but I did run into what might be the same issue when looking at ujson before. The builtin JSON module lets you define custom serializations for types that aren't natively JSON-serializable; we had an application that did that with datetime objects, encoding them as ISO 8601 date strings. ujson doesn't support anything like that; you have to make sure everything is one of the JSON types already before encoding. |
|