(bug 52799) Introducing dumpJson.

This allows JSON dumps to be created for all entities.

This is a baseline implementation.

In later changes, this will be extended to allow for
entities to be filtered by type, ids to be loaded from file, etc.

Change-Id: I09eaa2a7b6fa9cb6a5ffc57b5f28c30e93d79f8b