Renamed JSONNode.toString to asJSONString since it doesn't really fulfil the toString contract. Improved error handling.