generating json that can be used to build the docs