deserialization
Here are 312 public repositories matching this topic...
Currently, when SortMapKeys is set to true in Config, map keys are sorted using a standard alphanumeric sort. It should be possible to specify a custom map key sorting function to use, in order to prioritize certain map keys over others.
Example: Standard SortMapKeys behavior:
cfg := jsoniter.Config{
SortMapKeys: true,
}.Froze()
m := map[string]int{
"beta": 2,
"alp
The fact that exclude takes dotted notation for nested fields, but unknown does not apply to nested fields, means that exclude doesn't work for nested fields in some common use cases unless the nested schema(s) have the desired Meta.unknown setting, and then they are not runtime-flexible, which is the great benefit of Schema and load taking exclude. Somewhat new to marshmallow so mayb
-
Updated
Jun 12, 2020 - Swift
To facilitate easier studying of these types of vulnerabilities the tool scaffolding should be able to instrument itself to generate ASCII diagrams of payload object-graphs (similar to this) and deserialization code execution call-trees (similar to [this](https://gist.github.com/frohoff/24af7913611f8406ea
DateType and DateTimeType and subclasses use datetime.datetime.strptime, which in turn uses the dateutil library. Unfortunately, this library is much slower at ISO8601 date parsing than C-based alternatives (in particular, ciso8601):
import datetime
import ciso8601
%timeit datetime.datetime.strptime('2018-01-01', '%Y-%m-%d')
# 10.5 µs ± 440 ns per loop (mean ± std. dev. of 7 r
-
Updated
Jan 21, 2020 - Python
The documentation at Sitepoint is actually very much explanatory than the "official" one at jsoniter
I suggest you include the Sitepoint link in the official [jsoniter](http://jsonit
-
Updated
Jun 16, 2020 - PHP
-
Updated
Jun 20, 2020 - Rust
I think the instructions and code examples could be more specific about the fact that readValue is reified and it needs to be imported in order for the mapper to work.
import com.fasterxml.jackson.module.kotlin.readValue
I spent some time finding an issue with my code because I did not take wildcard import instruction literally. I just imported jacksonObjectMapper from the kotlin module. :
Conan package
-
Updated
Feb 28, 2020 - Swift
-
Updated
Dec 7, 2019 - Objective-C
I think it would help to clarify in the documentation that a deserialized datetime object is by default aware (i.e. its tzinfo attribute is set to a timezone object provided by the pytz non-standard library) rather than being naive (i.e. its tzinfo attribute is
Function borrowed_name (in quick_xml::events::BytesStart) as is stated in documentation - can be used to create BytesStart from a given name. But if you pass (by mistake or intentionally) attribute data in the string alongside with the name this function does not parse those attributes nor verify if actually passed data is a valid name. It will treat any kind of data as a name even if it is not
I'm using JSON schema with React JSONSchema Forms to create forms automatically.
Currently, typesystem doesn't emit metadata like title or description into the rendered schema for fields (or schema objects). It does use those parameters for rendering forms, so I think a case can be made for adding it to the generated json schema too if
-
Updated
Jun 19, 2020 - C++
-
Updated
Jan 14, 2018 - Java
-
Updated
Jan 7, 2020 - Java
Hi there,
I do find the default values for jsonapi_cache and default initializers, but is it possible to add some documentation? I have a very static json and it would be awesome to have it cached somewhere.
Thanks in advance!
- cattrs version: 0.9.0
- Python version: 3.8
- Operating System: windows
Description
It appears that when you have attr classes that are in a file with from __future__ import annotations, cattrs does not work when trying to structure a simple type to your attrs class. This is because attrs uses __annotations__ to get the type annotations and with PEP-563, these are now strings i
-
Updated
Jun 27, 2019 - Ruby
e.g., How does marsmallow-jsonapi integrate with:
- flask-marshmallow
- marshmallow-sqlalchemy
-
Updated
Mar 20, 2020 - ASP
-
Updated
Jun 18, 2020 - Python
-
Updated
May 2, 2020 - Python
-
Updated
Jun 15, 2020 - Dart
-
Updated
Apr 12, 2020 - Python
GenCodecwithCborInput/CborOutputfrom AVSystems scala-commons.- CBORFactory from the jackson-dataformat-cbor library that can be used with the jackson-module-scala library.
Improve this page
Add a description, image, and links to the deserialization topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the deserialization topic, visit your repo's landing page and select "manage topics."
There are grammatical errors in the English FAQ section:
https://github.com/alibaba/fastjson/wiki/FAQ(English-Version)
I propose that these grammatical errors be revised for readability.
Here are some examples below:
5. fastjson v.s. gson?
fastjson is 6 times faster than gson, here is the testing result: https://github.com/eishay/jvm-serializers/wiki/Staging-Resultsfastjson is 6 tim