Adds json read and tests.