Summary
In this chapter, we briefly introduced JSON and ORM. We then learned how to work with the json
and orm
libraries, which are available in V, in detail. In the earlier sections of this chapter, we learned how to perform JSON encoding and decoding using json
, a third-party library that ships along with V.
In the later sections of this chapter, we focused on the built-in orm
library. We learned how to work with the orm
library and set up requirements such as manually installing the third-party sqlite
library to work with the SQLite database. We then saw how to perform DDL and DML operations with the help of the orm
library in V.
This chapter served as a foundation for you to write data-driven web APIs using the orm
and json
libraries. The knowledge of ORM that you've gained in this chapter will help you access and interact with a database. Also, the knowledge of working with JSON data formats in V will help you exchange data between various kinds of web-based APIs or...