# VERSION
# $Id$
use strict;
use warnings;
use base 'Chemistry::File';
use Chemistry::Mol;
use JSON;
use List::Util qw( any );
use URL::Encode qw( url_params_multi );
my @mandatory_fields = qw( ca
ile::OPTIMADE->new( file => 'myfile.json' );
my $mol = $file->read();
=cut
# Format is not registered, as OPTIMADE does not have proper file extension.
# .json is an option, but not sure if it w
my $json = decode_json $s;
if( $json->{meta} &&
$json->{meta}{api_version} &&
$json->{meta}{api_version} =~ /^[^01]\./ ) {
warn 'OPTIMADE API version ' . $json->{meta}