Skip to content
#

serializer

Here are 473 public repositories matching this topic...

zachelrath
zachelrath commented Jul 9, 2019

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
mwatts15
mwatts15 commented Mar 27, 2020

The doc-comment for Store.open indicates the following (my emphasis):

If create is True a store will be created if it does not already exist. If create is False and a store does not already exist an exception is raised

However, an exception is not raised by the sleepycat store, the only store in the standard library for which the create flag is meaningful. For sleepycat, in the case th

Eightyplus
Eightyplus commented Jun 15, 2019

rendering a component with <> ... </> seems troublesome and often return null instead of children

functional-component.js

import React from 'react';
export default ({ message }) => <span>{message}</span>;

component.js

import React from 'react';

import FunctionalComponent from './functional-component';

export default ({ message, show }) => {
  return (
    <>
  
allthesignals
allthesignals commented Mar 29, 2020

The serialization docs say the following:

ref: If present, it's considered as a relationships.
id: Configurable identifier field for the resource. Default: id.

I don't understand what one is doing over the other? What if I specify a ref but no id, and there is no id field?

Happy to contribute to clarify docs once I understand the difference.

Thanks.

liudr
liudr commented Dec 1, 2019

[update]
I am requesting a list of status_code and their meanings returned by the following function reportedStateCallback(). My port is esp-azure but this status_code should be generic. Thanks.

[original]
I'm using the esp-azure port but the c port has the same function, a callback function when device completes sending device twin update:

static void reportedStateCallback(int status
yallie
yallie commented Jan 20, 2019

Hello Riki, your serializer looks very promising!

I'm wondering whether its physical format stable enough to be standardized?
Would be great to have a wire-compatible javascript version of the .NET serializer.
Existing formats like Json, Bson or MessagePack are quite limited (don't support circular references, etc).

Regards, Alex

Improve this page

Add a description, image, and links to the serializer topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the serializer topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.