Jackson-js: Powerful JavaScript decorators to serialize/deserialize objects into JSON and vice versa (Part 1)
Tags: decorators, javascript, jsonparse, jsonstringify
Published: 2020-05-13 16:02:49

---
title: Jackson-js: Powerful JavaScript decorators to serialize/deserialize objects into JSON and vice versa (Part 1)
published: true
description: jackson-js is heavily inspired by the famous Java FasterXML/jackson library. It offers powerful JavaScript decorators to write and read JSON.
tags: decorators, javascript, json-parse, json-stringify
cover_image:
canonical_url: https://itnext.io/jackson-js-powerful-javascript-decorators-to-serialize-deserialize-objects-into-json-and-vice-df952454cf
---
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pu4cd5n67pxh5f2awb8w.png)
<figcaption>JSON logo</figcaption>

After many hours of development, I finally released the first version of the [`jackson-js`](https://github.com/pichillilorenzo/jackson-js) library. As the name implies, [`jackson-js`](https://github.com/pichillilorenzo/jackson-js) decorators are heavily inspired by the Java annotations of the famous Java [FasterXML/jackson library](https://github.com/FasterXML/jackson).

You can install it using `npm install —-save jackson-js` and it can be used on both **client** (browser) and **server** (Node.js) side.

## Why this library? What’s the difference between using this library instead of [`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) and [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify)?

For simple cases, you don't need this library of course, you can just use `JSON.parse` and `JSON.stringify` to serialize/deserialize JSON.

With [`jackson-js`](https://github.com/pichillilorenzo/jackson-js), you can easily manipulate your JavaScript objects/values serialization/deserialization using decorators such as `@JsonProperty()`, `@JsonFormat()`, `@JsonIgnore()`, and more. However, this library uses `JSON.parse` and `JSON.stringify` under the hood.

Furthermore: 
- it not only deserialize JSON text into a JavaScript object, it also converts it into an **instance of the class** specified in the `context` option (similar packages are: [class-transformer](https://github.com/typestack/class-transformer) and [TypedJSON](https://github.com/JohnWeisz/TypedJSON)); instead, with `JSON.parse` you will get just a simple plain (literal) JavaScript object (just [`Object`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) type);
- it supports more advanced Object concepts such as **polymorphism** and **Object identity**;
- it supports **cyclic object** serialization/deserialization;
- it supports serialization/deserialization of other native JavaScript types: `Map`, `Set`, `BigInt`, Typed Arrays (such as [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array));

This library can be useful in more complex cases, for example when you want to:
- manipulate JSON in depth;
- restore a JavaScript type (a similar package is [class-transformer](https://github.com/typestack/class-transformer)); 
- preserve type information (using polymorphic type handling decorators: `@JsonTypeInfo`, `@JsonSubTypes`, and `@JsonTypeName`. A similar package is [TypedJSON](https://github.com/JohnWeisz/TypedJSON));
- hide some properties for certain HTTP endpoints or some other external service;
- have different JSON response for some external application or manage different JSON data coming from other application (for example you need to communicate with a Spring Boot application that uses different JSON Schema for the same model or with other applications made with Python, PHP, etc...);
- manage cyclic references;
- manage other JavaScript native types such as Maps and Sets;
- etc.

Most of the use cases of the Java [FasterXML/jackson](https://github.com/FasterXML/jackson) annotations are similar or equal.

In this article, I will present a basic example for each decorator.

## ObjectMapper, JsonParser and JsonStringifier classes

The main classes that [`jackson-js`](https://github.com/pichillilorenzo/jackson-js) offers to serialize and deserialize JavaScript objects are: `ObjectMapper`, `JsonStringifier` and `JsonParser`.

### ObjectMapper

`ObjectMapper` provides functionality for both reading and writing JSON and applies `jackson-js` **decorators**. It will use instances of `JsonParser` and `JsonStringifier` for implementing actual reading/writing of JSON. It has two methods:
- `stringify(obj: T, context?: JsonStringifierContext): string`: a method for serializing a JavaScript object or a value to a JSON string with **decorators** applied;
- `parse(text: string, context?: JsonParserContext): T`: a method for deserializing a JSON string into a JavaScript object/value (of type `T`, based on the context given) with **decorators** applied.

### JsonParser

`JsonParser` provides functionality for writing JSON and applies `jackson-js` **decorators**. The main methods are:
- `parse(text: string, context?: JsonParserContext): T` : a method for deserializing a JSON string into a JavaScript object/value (of type `T`, based on the context given) with **decorators** applied;
- `transform(value: any, context?: JsonParserContext): any` : a method for applying `jackson-js` **decorators** to a JavaScript object/value parsed. It returns a JavaScript object/value with decorators applied.

### JsonStringifier

`JsonStringifier` provides functionality for reading JSON and applies `jackson-js` **decorators**. The main methods are:
- `stringify(obj: T, context?: JsonStringifierContext): string`: a method for serializing a JavaScript object or a value to a JSON string with **decorators** applied;
- `transform(value: any, context?: JsonStringifierContext): any`: a method for applying `jackson-js` **decorators** to a JavaScript object/value. It returns a JavaScript object/value with decorators applied and ready to be JSON serialized.

## Decorators

Before we go on, I need to say that the most important decorators are:
- `@JsonProperty()`: each class property (or its getter/setter) must be decorated with this decorator, otherwise deserialization and serialization will not work properly! That's because, for example, given a JavaScript class, there isn't any way or API (such as [Reflection API for Java](https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/package-summary.html)) to get for sure all the class properties; also because, sometimes, compilers such as [TypeScript](https://www.typescriptlang.org/) and [Babel](https://babeljs.io/), can strip class properties after compilation from the class properties declaration;
- `@JsonClassType()`: this decorator, instead, is used to define the type of a class property or method parameter. This information is used during serialization and, more important, during deserialization to know about **the type of a property/parameter**. This is necessary because JavaScript isn't a strongly-typed programming language, so, for example, during deserialization, without the usage of this decorator, there isn't any way to know the specific type of a class property, such as a `Date` or a custom Class type.

Later, they will be explained in more detail.
{% gist https://gist.github.com/pichillilorenzo/a723b818f66db39dc15d3498e57c804c %}

## @JsonAlias

The `@JsonAlias` decorator defines one or more alternative names for a property during deserialization.

**API**: [JsonAlias](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonalias) - decorator options [JsonAliasOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonaliasoptions.html).
{% gist https://gist.github.com/pichillilorenzo/68b740b597bd60a191bd857f550c9cef %}

## @JsonAnyGetter

The `@JsonAnyGetter` decorator allows the flexibility of using a Map or an Object Literal field as standard properties.

**API**: [JsonAnyGetter](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonanygetter) - decorator options [JsonAnyGetterOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonanygetteroptions.html).
{% gist https://gist.github.com/pichillilorenzo/abd542494c141d90784bc864a159e512 %}

## @JsonAnySetter
`@JsonAnySetter` allows us to define a logical "any setter" mutator using a non-static two-argument method to be used as a "fallback" handler for all otherwise unrecognized properties found from JSON content.

**API**: [JsonAnySetter](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonanysetter) - decorator options [JsonAnySetterOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsonanysetteroptions).
{% gist https://gist.github.com/pichillilorenzo/18e8cb5082d77a06e7d83979c2f9dd23 %}

## @JsonAppend
`@JsonAppend` can be used to add "virtual" properties to be written after regular properties.

**API**: [JsonAppend](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonappend) - decorator options: [JsonAppendOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonappendoptions.html).
{% gist https://gist.github.com/pichillilorenzo/122ae36dfc67e1b40a5f24c26f41c662 %}

## @JsonManagedReference and @JsonBackReference
The `@JsonManagedReference` and `@JsonBackReference` decorators can handle parent/child relationships and work around loops.

**API**: [JsonManagedReference](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonmanagedreference) - decorator options [JsonManagedReferenceOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonmanagedreferenceoptions.html), [JsonBackReference](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonbackreference) - decorator options [JsonBackReferenceOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonbackreferenceoptions.html).
{% gist https://gist.github.com/pichillilorenzo/f295a76702c6535d7b7b4ae93abf3125 %}

## @JsonClassType
As said before, the `@JsonClassType` is used to define the type of a class property or method parameter. A type is defined as an Array of JavaScript classes, such as `[Number]` for properties of type number or `[Array, [Number]]` for properties of type `Array<number>` or `[Map, [String, Object]]` for properties of type `Map<string, any>`.
Why an Array of JavaScript classes? Because in this way you can map complex types such as `Map<string, any>` using `[Map, [String, Object]]` or `Array<Set<any>>` using `[Array, [Set, [Object]]]`.

**API**: [JsonClassType](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonclasstype) - decorator options [JsonClassTypeOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonclasstypeoptions.html).
{% gist https://gist.github.com/pichillilorenzo/608c1e6aec1bae769d02adb115b9d045 %}

## @JsonCreator
We can use the `@JsonCreator` decorator to define constructors and factory methods as one to use for instantiating new instances of the associated class.
It’s very helpful when we need to deserialize some JSON that doesn’t exactly match the target entity we need to get, also with the help of the `@JsonProperty` decorator.

**API**: [JsonCreator](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsoncreator) - decorator options [JsonCreatorOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsoncreatoroptions.html).
{% gist https://gist.github.com/pichillilorenzo/cda28e5c0cc889dae9f8e55d99d2c3ba %}

## @JsonSerialize and @JsonDeserialize
`@JsonSerialize` and `@JsonDeserialize` are used to indicates the use of a custom serializer/deserializer.

**API**: [JsonSerialize](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonserialize) - decorator options [JsonSerializeOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonserializeoptions.html), [JsonDeserialize](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsondeserialize) - decorator options [JsonDeserializeOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsondeserializeoptions.html).
{% gist https://gist.github.com/pichillilorenzo/f2e3a93736ce7b57c1885de981acd308 %}

## @JsonFilter
`@JsonFilter` can be used to indicate which logical filter is to be used for filtering out properties of type (class) decorated.

**API**: [JsonFilter](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonfilter) - decorator options [JsonFilterOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonfilteroptions.html).
{% gist https://gist.github.com/pichillilorenzo/89ccabd454bee0aebb8f4e2af88ef630 %}

## @JsonFormat
`@JsonFormat` is a general-purpose decorator used for configuring details of how values of properties are to be serialized.

**API**: [JsonFormat](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonformat) - decorator options [JsonFormatOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsonformatoptions).
{% gist https://gist.github.com/pichillilorenzo/20f8d595c9b0cd50b3849df62fc869c8 %}

## @JsonGetter and @JsonSetter
`@JsonGetter` and `@JsonSetter` are alternatives to more general `@JsonProperty` decorator to mark a method as a getter/setter method for a logical property.

**API**: [JsonGetter](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsongetter) - decorator options: [JsonGetterOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsongetteroptions.html), [JsonSetter](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonsetter) - decorator options [JsonSetterOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonsetteroptions.html).
{% gist https://gist.github.com/pichillilorenzo/af87cf53978c73ee4a770c4b7dcba172 %}

## @JsonIdentityInfo
`@JsonIdentityInfo` indicates that Object Identity should be used when serializing/deserializing values - for instance, to deal with infinite recursion type of problems.

**API**: [JsonIdentityInfo](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonidentityinfo) - decorator options [JsonIdentityInfoOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonidentityinfooptions.html).
{% gist https://gist.github.com/pichillilorenzo/acf98f7c9ad7d8f7387481b7009b7400 %}

## @JsonIdentityReference
`@JsonIdentityReference` can be used for customizing details of a reference to Objects for which "Object Identity" is enabled (see `@JsonIdentityInfo`). The main use case is that of enforcing the use of Object Id even for the first time an Object is referenced, instead of the first instance being serialized as full Class.

**API**: [JsonIdentityReference](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonidentityreference) - decorator options [JsonIdentityReferenceOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonidentityreferenceoptions.html).

## @JsonIgnore, @JsonIgnoreProperties, and @JsonIgnoreType
`@JsonIgnore` is used to mark a property to be ignored at the field level during serialization and deserialization.

**API**: [JsonIgnore](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonignore) - decorator options [JsonIgnoreOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsonignoreoptions).

`@JsonIgnoreProperties` can be used as a class-level decorator that marks a property or a list of properties that will be ignored during serialization and deserialization.

**API**: [JsonIgnoreProperties](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonignoreproperties) - decorator options [JsonIgnorePropertiesOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonignorepropertiesoptions.html).

`@JsonIgnoreType` indicates that all properties of decorated type are to be ignored during serialization and deserialization.

**API**: [JsonIgnoreType](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonignoretype) - decorator options [JsonIgnoreTypeOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsonignoretypeoptions).

{% gist https://gist.github.com/pichillilorenzo/21dfc3a340a2835cbd6d3ccdffffa815 %}

## @JsonInclude
`@JsonInclude` can be used to exclude properties with empty/null/default values.

**API**: [JsonInclude](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsoninclude) - decorator options [JsonIncludeOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsonincludeoptions).
{% gist https://gist.github.com/pichillilorenzo/97b747248430948d79d1f7eea93176ea %}

## @JsonInject
`@JsonInject` decorator is used to indicate that value of decorated property will be injected during deserialization.

**API**: [JsonInject](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsoninject) - decorator options [JsonInjectOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsoninjectoptions.html).
{% gist https://gist.github.com/pichillilorenzo/65a1e5d7fe44390dd35a9c5374e09470 %}

## @JsonNaming
`@JsonNaming` decorator is used to choose the naming strategies (`SNAKE_CASE`, `UPPER_CAMEL_CASE`, `LOWER_CAMEL_CASE`, `LOWER_CASE`, `KEBAB_CASE`, and `LOWER_DOT_CASE`) for properties in serialization, overriding the default.

**API**: [JsonNaming](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonnaming) - decorator options [JsonNamingOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonnamingoptions.html).
{% gist https://gist.github.com/pichillilorenzo/00f0dab0948ba10c8dfb23b19f4c9fc6 %}

## @JsonProperty
`@JsonProperty` can be used to define a non-static method as a "setter" or "getter" for a logical property or non-static object field to be used (serialized, deserialized) as a logical property.

**API**: [JsonProperty](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonproperty) - decorator options [JsonPropertyOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonpropertyoptions.html).
{% gist https://gist.github.com/pichillilorenzo/29810d7ce7e1b7f17bc4c4663d06f252 %}

## @JsonPropertyOrder
`@JsonPropertyOrder` can be used to specify the order of properties on serialization.

**API**: [JsonPropertyOrder](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonpropertyorder) - decorator options [JsonPropertyOrderOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonpropertyorderoptions.html).
{% gist https://gist.github.com/pichillilorenzo/4d7397bbd368a6e6cc79b05b8c1126b6 %}

## @JsonRawValue
`@JsonRawValue` decorator indicates that the decorated method or field should be serialized by including literal String value of the property as is, without quoting of characters. This can be useful for injecting values already serialized in JSON or passing javascript function definitions from server to a javascript client.

**API**: [JsonRawValue](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonrawvalue) - decorator options [JsonRawValueOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsonrawvalueoptions).
{% gist https://gist.github.com/pichillilorenzo/2e12a20ed2cf112a1a4c032ad3f316cc %}

## @JsonRootName
`@JsonRootName` decorator is used - if wrapping is enabled - to specify the name of the root wrapper to be used.

**API**: [JsonRootName](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonrootname) - decorator options [JsonRootNameOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonrootnameoptions.html).
{% gist https://gist.github.com/pichillilorenzo/bd50f37caea1c21ab8b577df5f8b9646 %}

## Polymorphic Type Handling Decorators: @JsonTypeInfo, @JsonSubTypes, and @JsonTypeName
- `@JsonTypeInfo`: indicates details of what type information to include in serialization; **API**: [JsonTypeInfo](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsontypeinfo) - decorator options [JsonTypeInfoOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsontypeinfooptions.html);
- `@JsonSubTypes`: indicates sub-types of the annotated type; **API**: [JsonSubTypes](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonsubtypes) - decorator options [JsonSubTypesOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonsubtypesoptions.html);
- `@JsonTypeName`: defines a logical type name to use for annotated class; **API**: [JsonTypeName](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsontypename) - decorator options [JsonTypeNameOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsontypenameoptions.html).
{% gist https://gist.github.com/pichillilorenzo/21b9bb283ceb606f857481ecd157518a %}

## @JsonTypeId
`@JsonTypeId` decorator is used to indicate that the annotated property should be serialized as the type id when including polymorphic type information, rather than as a regular property. That polymorphic metadata is used during deserialization to recreate objects of the same subtypes as they were before serialization, rather than of the declared supertypes.

**API**: [JsonTypeId](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsontypeid) - decorator options [JsonTypeIdOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsontypeidoptions).

## @JsonTypeIdResolver
`@JsonTypeIdResolver` decorator can be used to plug a custom type identifier handler to be used for converting between JavaScript types and type id included in JSON content.

**API**: [JsonTypeIdResolver](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsontypeidresolver) - decorator options [JsonTypeIdResolverOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsontypeidresolveroptions.html).
{% gist https://gist.github.com/pichillilorenzo/20c5fcde4473613b774520021f672931 %}

## @JsonUnwrapped
`@JsonUnwrapped` defines values that should be unwrapped/flattened when serialized/deserialized.

**API**: [JsonUnwrapped](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonunwrapped) - decorator options [JsonUnwrappedOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonunwrappedoptions.html).
{% gist https://gist.github.com/pichillilorenzo/aeba3ea83ac6436eb663a3134a97b28e %}

## @JsonValue
`@JsonValue` decorator indicates that the value of decorated accessor (either field or "getter" method) is to be used as the single value to serialize for the instance, instead of the usual method of collecting properties of value.

**API**: [JsonValue](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonvalue) - decorator options [JsonValueOptions](https://pichillilorenzo.github.io/jackson-js/latest/modules/types.html#jsonvalueoptions).
{% gist https://gist.github.com/pichillilorenzo/6ffa28cf8b422263fbe3d39773727e21 %}

## @JsonView
`@JsonView` decorator is used for indicating view(s) that the property that is defined by method or field decorated is part of. If multiple View class identifiers are included, the property will be part of all of them. It is also possible to use this decorator on classes to indicate the default view(s) for properties of the type, unless overridden by per-property decorator.

**API**: [JsonView](https://pichillilorenzo.github.io/jackson-js/latest/modules/decorators.html#jsonview) - decorator options [JsonViewOptions](https://pichillilorenzo.github.io/jackson-js/latest/interfaces/types.jsonviewoptions.html).
{% gist https://gist.github.com/pichillilorenzo/f0ec58d631a4a08f78d043849fca040a %}

## Conclusion
In the next part ("[Jackson-js: Examples for client (Angular) and server (Node.js) side (Part 2)](https://dev.to/pichillilorenzo/jackson-js-examples-for-client-angular-and-server-node-js-side-part-2-128n)"), I will give a simple example using [`jackson-js`](https://github.com/pichillilorenzo/jackson-js) with Angular 9 for the client side and two examples for the server side: one using Node.js + [Express](http://expressjs.com/) + SQLite3 (with [Sequelize 5](https://sequelize.org/)) and another one using Node.js + [LoopBack 4](https://github.com/strongloop/loopback-next).