Skip to content

A Swift macOS app built in SwiftUI that lets you paste, load, or drag-and-drop JSON to validate it using our hand-crafted JSON parser — no JSONSerialization, fully custom lexer + parser.

Notifications You must be signed in to change notification settings

OGSarah/JSONParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSONParser - macOS App with SwiftUI

Currently WIP

A Swift macOS app built in SwiftUI that lets you paste, load, or drag-and-drop JSON to validate it using our hand-crafted JSON parser — no JSONSerialization, fully custom lexer + parser.

This project implements a complete, standards-compliant JSON parser in pure Swift, following the official RFC 8259 specification. Built as a learning exercise in lexical analysis and recursive descent parsing, it supports all JSON data types and nested structures — including proper error reporting with line/column numbers.

Screenshots

TODO: Add

Language, Frameworks, & Tools used:

  • Swift
  • SwiftUI
  • macOS 26
  • Xcode 26
  • SwiftLint

Features:

  • Zero external dependencies
  • Manual lexer (tokenizer)
  • Recursive descent parser
  • Full JSON Support (Objects {}, Arrays [], Strings (with escapes, Unicode \uXXXX), Numbers (int, float, scientific notation), Booleans (true, false), null)
  • Precise error messages with line and column
  • Drag & drop JSON files
  • Paste JSON from clipboard
  • Load from file
  • Real-time validation
  • Rich error reporting with line/column
  • Syntax highlighting (valid/invalid)
  • Clean, modern SwiftUI interface

License

Proprietary Software

© 2025 SarahUniverse

This software and its source code are the exclusive property of SarahUniverse. No part of this software may be reproduced, distributed, or transmitted in any form or by any means without prior written permission.

About

A Swift macOS app built in SwiftUI that lets you paste, load, or drag-and-drop JSON to validate it using our hand-crafted JSON parser — no JSONSerialization, fully custom lexer + parser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages