Abstract
Ada 2022 introduces new features that enable more natural-looking initializations. On the one hand, it is now possible to use universal numbers and strings to initialize any private type; on the other hand, containers can be initialized directly without the explicit use of converting functions. Both features are enabled through new aspects that associate user-defined subprograms with the necessary initialization calls.
In this work, the possibility of using these new features is explored to define a container type that allows initializations using heterogeneous types, as is usual in textual formats for structured data such as JSON, TOML and YAML, and still without the need to resort to explicit conversion calls or "crutch" functions like the often-seen trick of overloading the "+" operator. Although this has proven ultimately avoidable, there is still the need to use qualifications in certain circumstances.
- "User-defined literals." http://www.ada-auth.org/ standards/2xrm/html/RM-4--2--1.html. Ada Reference Manual (Ada 202x Draft 32).Google Scholar
- "Container aggregates." http://www.ada-auth.org/ standards/2xrm/html/RM-4--3--5.html. Ada Reference Manual (Ada 202x Draft 32).Google Scholar
- L. Bassett, Introduction to JavaScript object notation: a to-thepoint guide to JSON. " O'Reilly Media, Inc.", 2015.Google Scholar
- A. R. Mosteo, "YEISON repository." https://github.com/ mosteo/yeison, May 2022.Google Scholar
- A. R. Mosteo, "Use (and abuse?) of Ada 2022 features in designing a JSON-like data structure." https://fosdem.org/ 2022/schedule/event/ada_2022_json_like/, 2022. FOSDEM.Google Scholar
Recommendations
Foundations of JSON Schema
WWW '16: Proceedings of the 25th International Conference on World Wide WebJSON -- the most popular data format for sending API requests and responses -- is still lacking a standardized schema or meta-data definition that allows the developers to specify the structure of JSON documents. JSON Schema is an attempt to provide a ...
JSON: Data model, Query languages and Schema specification
PODS '17: Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database SystemsDespite the fact that JSON is currently one of the most popular formats for exchanging data on the Web, there are very few studies on this topic and there is no agreement upon a theoretical framework for dealing with JSON. Therefore in this paper we ...
Schemas and Types for JSON Data: From Theory to Practice
SIGMOD '19: Proceedings of the 2019 International Conference on Management of DataThe last few years have seen the fast and ubiquitous diffusion of JSON as one of the most widely used formats for publishing and interchanging data, as it combines the flexibility of semistructured data models with well-known data structures like ...






Comments