microsoft / microsoft/XmlNotepad

Feature Request - Ability to open JSON files that begin with an array

Open
#389 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.2k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

When trying to open a JSON file that begins with an array (character "["), XmlNotepad (2.9.0.10) displays the following error:

XmlNodeConverter can only convert JSON that begins with an object. Path '', line 1, postition 1.

Would it be possible for the XmlNodeConverter to convert JSON files that begin with an array please? Example JSON file attached.

Also, should the Path single quotes in the error message contain anything?

Thanks.

70.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the JSON conversion path that produces the XmlNodeConverter error in XmlNotepad, then reproduce it with the attached 70.zip file. Done means JSON files whose root is an array open successfully and the reported Path wording is resolved or clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, json
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.