Re: Naming stuff is hard.. Data::Topology::JSON

[email protected] (Aaron Trevena)
Newsgroups perl.module-authors
Message-ID <CAJWQ4V2BwLExiECpJoRC9ghRyaL2HjTCBfMstDBXDqzkEM876w@mail.gmail.com>
On 24 October 2016 at 09:23, Konstantin S. Uvarin <[email protected]> wrote:
>  Could you please explain in more details? Sounds interesting, but it's not
> clear from the message what you mean by "de-facto schema". Maybe an example?

I don't have a clean-room data set I can use as an example right now,
but essentially I'm parsing json, making a note of the names and
hierarchy of the fields, using dot-notation (i.e. like mongo) to name
nested fields, infer their type (i.e. ip address, mac address, epoch
time, etc) from data, and get a sample of the data. From that I can
then output a JSON::Schema or other documentation describing the data
itself.

A.

-- 
Aaron J Trevena, BSc Hons
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Consulting
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.