updated version in readme
added option to encode associative arrays as objects
added option to define max depth of an object to avoid endless recursion
implemented better json error handling