clean up json blog code