fixing json in tools