fixes #24

allows for an extra param to decode json objects into associative arrays