Added parsing for JSON objects and arrays; also, parsing will only be attempted if the value is a string