made parsing more robust even with very weirdly malformed json + enhanced number parsing for better detection in malformed json