Hi all,
I've written some code to extract a "de-facto schema" from json, in
order to provide documentation and possibly other useful metadata
(i.e. dropdowns in UIs, etc).
For want of a better name I've gone with Data::Topology::JSON but any
better suggestions are much appreciated.
Cheer,
Aaron
On 24 October 2016 at 09:23, Konstantin S. Uvarin 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 essential
Aaron Trevena writes:
> 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,
On 24 October 2016 at 09:49, Smylers wrote:
> Aaron Trevena writes:
>
>> 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 fiel
Hello,
Does this module work on JSON-encoded data, or on a Perl structure
achieved by decoding JSON? If latter is the case, then maybe the JSON part
may be omitted altogether? Something like Data::Schema::Inferred?
If it's JSON-encoded, I second Smylers' answer.
On Mon, Oct 24, 2016 at 11:49
Aaron Trevena writes:
> On 24 October 2016 at 09:49, Smylers wrote:
>
> > If your module is Json-specifiec and there already exists a JSON::
> > top-level namespace, then I think it's much better to put it
> > somewhere under JSON:: than Data::, which is so generic it tells
> > users very little
Very, very cool module. As to your question, I would encourage the use of
the term "Schema" over "Topology", unless you really mean it. Topology is a
term that refers to geometry and/or connectivity. Presumably you are
determining the connectivity of your data---one structure holds or refers
to ano