fixed json builder to just put out the things which are important
added test for types and checked size of the output json in api/qustion