0.3.0 • Published 6 years ago

webmiddle-service-jsonselect-to-json v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

webmiddle-service-jsonselect-to-json

Service that converts a resource, whose content is parsed by the JSONSelect library, to a JSON resource with the given schema.

Install

npm install --save webmiddle-service-jsonselect-to-json

How it works

It just pipes the resource through the respective to virtual and from virtual services.

Properties

NameDescription
nameThe name of the returned resource.
fromThe JSON resource to convert.
fullConversion (optional)Set this to true to do a 1:1 conversion, without having to specify a schema.
childrenThe schema for the JSONSelectToVirtual conversion.