Tag: json
-
Generating JSON Schema in Java with "additionalProperties" set to "true"
Recently i was working on a new tool for contract testing that we decided to develop in New10 from scratch. We decided that we would like to use JSON Schema's for contracts validation and for that i needed to implement several SDK's in typescript, java, python in order to support…
-
How to pretty print JSON in bash console
Recently i was playing with Swagger Codegen tool and i needed to look at available configuration fields for java language. You can do it easily by running : curl -X GET --header 'Accept: application/json' 'https://generator.swagger.io/api/gen/clients/java' But, as an output, you'll get this : {"…
-
Handy converting of data in CSV into JSON
Currently i'm working on my fabricator.js library , which is basically a javascript analog of my already existing scala fabricator library. The reason i'm doing this is that i would like to use my fake data generator in node cli tool and also i would like to make a Chrome…
-
Pretty printing of JSON in javascript
I like JSON very much. It's easy to read, easy to work with, but when you get a big structure, it's handy to have some quick way for print it out in a nice readable format. Before i was using Sublime Text editor with PrettyJson plugin. But now i started…