compiling the json code