First working version of the json dsl