{'fraction_non_alphanumeric': 0.019077901430842606, 'fraction_numerical': 0.00397456279809221, 'mean_word_length': 4.966824644549763, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Performance Analysis of Native JSON Parsers in Java, Python, MS.NET Core, JavaScript, and PHP

JavaScript Object Notation (JSON) has gained prominence over Extensible Markup Language (XML) due to its lightweight and flexible nature. This has also made it a first-class citizen when it comes to choose a data interchange format. All major programming platforms provide native libraries to parse JSON formatted data, but the performance of JSON parsers varies with their implementation. For further processing and analysis of semi-structured JSON data, it is first parsed which is expensive. In this research paper, performance analysis of JSON parsers in the native environment of 5 different programming languages has been done in terms of parsing speed and resource consumption. The experiment data is created using an algorithm written in Java that generates 10 different JSON files with an increasing number of key-value pairs at each level of JSON nesting. The native performance monitor on Windows 10 operating system is used to monitor and measure memory and CPU usage of the running processes. The output of data collector set is saved in the comma separated format for further analysis. The experimental results are discussed and shared at the end.