[Info-vax] openvms and xterm

Dan Cross cross at spitfire.i.gajendra.net
Tue Apr 23 13:40:26 EDT 2024


In article <v08q86$1o3rh$1 at dont-email.me>,
Simon Clubley  <clubley at remove_me.eisner.decus.org-Earth.UFP> wrote:
>On 2024-04-23, Dan Cross <cross at spitfire.i.gajendra.net> wrote:
>>
>> In modern languages, one can often derive JSON serialization and
>> deserialization methods from the source data type, transparent
>> to the programmer.  Those may decide to use the JSON numeric
>> type for numeric data; this has surprised a few people I know
>> (who are extraordinarily competent programmers).  Sure, the fix
>> is generally easy (there's often a way to annotate a datum to
>> say "serialize this as a string"), but that doesn't mean that
>> even very senior people don't get caught out at times.
>>
>> But the problem is even more insideous than that; popular tools
>> like `jq` can take properly serialized source data and silently
>> make lossy conversions.  So you might have properly written,
>> value preserving libraries at both ends and still suffer loss
>> due to some intermediate tool.
>>
>> JSON is dangerous.  Caveat emptor.
>
>JSON is fine. What _is_ dangerous are the incredibly arrogant people
>who think they can design the above libraries in a way that silently
>alter someone's data in that way.

*shrug*  The encoding doesn't say that you can't.

	- Dan C.




More information about the Info-vax mailing list