Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.4 KB
Raw Blame

JSONDropKeys Stateless Fixtures

Each test has a <name>.tsv input and a matching <name>.reference expected output. These integration fixtures run JSONDropKeys(['a']). Files ending in .fail.tsv are expected to fail, and their .reference file contains the required stderr substring.

Test Purpose
drop_top_level_a Removes every top-level a key while preserving unrelated keys and duplicate unrelated keys.
drop_nested_a_and_keep_dotted_keys Drops top-level a values and verifies dotted keys that are not dropped keep their flat form.
large_integer Preserves large integer values while dropping only requested keys.
root_array Drops keys from objects when the root JSON value is an array.
empty_input Returns an empty string for an empty input value.
malformed_json.fail Verifies malformed JSON fails instead of being hidden.