Improving `flatMap` Usage and JSON Parsing in TypeScript Code - Effect Community