tarantool-admin icon indicating copy to clipboard operation
tarantool-admin copied to clipboard

Fields are implicitly converted to number when saving json

Open R-omk opened this issue 4 years ago • 1 comments

Unlike msgpack, json cannot contain anything other than strings in keys. I believe that it should always save strings. For other cases, make some exceptions explicitly.

R-omk avatar Sep 28 '21 09:09 R-omk

One option is to use explicit types with yaml instead of json, moreover yaml is more human-readable.

obj:
  txt: some1
  !!str 2: some2

Yaml from symfony already support !!str and !!float but not support !!int https://symfony.com/doc/current/components/yaml/yaml_format.html#unsupported-yaml-features

R-omk avatar Sep 29 '21 08:09 R-omk