easy function for making json pages