Add function to check the differences between two parsed JSON documents

The function assumes that the parsed JSON documents are in the format
used by the [jsx](https://github.com/talentdeficit/jsx) JSON parser. It returns the first term where they differ.