Adds native option flag processing to Json for compatibility with 5.2