parse structure json with json npm package for consistency