Added the ability to construct a JSON object with an int.