Library to convert JSON to JSON schema - json

I'm looking for a library that would convert a JSON to a schema.
jsonschema.net is an online tool, but what I want is a library I could use in my code. Similarly, to convert CSV and TSV to JSON schema as well.

Feel free to contribute to Schemify . Demo on Demo page.

Related

JSON to BSON conversion

I have game files in BSON. Wanted to convert it to JSON to find the value I wanted to change. Found this site: http://mcraiha.github.io/tools/BSONhexToJSON/bsonfiletojson.html, which is the tool to do that. But now I'm stuck with JSON file, and can't get it back to BSON. I couldn't find any online tools that can reverse that process.
So my question is - is there an easy way to convert JSON to BSON?

Is it possible to generate Avro schma from JSON file?

I have a JSON file. I'm looking for any program/tool which helps to generate AVRO schema based on that JSON file. I do not care about the data type. It can all be string as long as the AVRO schema structure is generated based on JSON.
The objective is, I'm trying to create a avro file using only json file. To do this, I would require avro schema.
so if I have an avro schema, using avro-tool, I'll be able to generate AVRO file by giving Avro schema and JSON file as input.
Any help/suggestions to proceed further will be greatly appreciated.
Thanks in Advance!
https://github.com/romaanankin/avro-schema-manager
you can generate in from a simple .CSV. Just use the tool above

Convert a JSON object to Tree Structure in PDF format

I want to convert a JSON object to PDF such that the resultant PDF contains Tree representation of JSON. Please help me with any online utility or tool for it.
You can use the ObjectMapper in JAVA, then create the PDF File of it.or you can use this link for online :https://mygeodata.cloud/converter/json-to-pdf

Simple Editor for BSON Databases

Does anyone known of a simple utility for editing a simple BSON database/file?
Did You try this: http://docs.mongodb.org/manual/reference/bsondump/ ?
The installation package that includes mongodump ('mongo-tools' on Ubuntu) should also include bsondump, for which the manpage says:
bsondump - examine BSON files in a human-readable form
You can convert BSON to JSON with the following:
bsondump --pretty <your_file.bson
As a data interchange format, BSON may not be suitable for editing directly. For manipulating a BSON dataset, you could, of course, upload it to MonogDB and work with that. Or, you could open the bsondump decoded JSON in an editor. But the BSON Wikipedia article indicates that compatible libraries exist in several languages, which suggests that you should also be able to decode it programmatically to an internal map representation and edit that internal representation in code.

JSON Schema Builder Program

Is there an existing program that helps forming a JSON Schema?
There's this great tool to get you started on generating a JSON Schema: http://www.jsonschema.net/ . Just feed a sample JSON files and out comes out a JSON Schema that you can then tweak.
Check this demo one. It is at an early stage but you can already edit jSON documents with a schema constraint as well as design a Schema itself.
And here is an official thread about Schema-based JSON editor:
You can use Orderly. They have DSL for schema description and you can try it online.
You could try this one (XML ValidatorBuddy) which is actually an XML editor but it also supports JSON and especially JSON Schema editing. The editor is a Windows desktop application and can do auto-completion and syntax-coloring for JSON schema files. You can also validate your JSON files against JSON schema.
You can do this in Liquid XML Studio, but its a commercial product
This isn't exactly something that'll help you with a 'schema', per se, but it's a visual way to navigate and manage JSON data.
http://braincast.nl/samples/jsoneditor/