Skip to content

ashen-23/json2swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2swift

auto convert json string to swift struct.中文介绍

demo


  • How to use?

    OS X app

      1. Input json to left
      1. click "convert=>"
      1. Copy the result Parameters statement:
      • ObjectMapper: Simple JSON Object mapping written in Swift. If this is selected, result will auto add func mapping

      • name: the name of the result, default is "Result"

      • prefix: the prefix of each struct name, default is empty.

    python script

      1. open Terminal, cd to Main.py
      1. Copy json string to File named "jsons.txt"
      1. Python3 Main.py
      1. ResultModel.swift is the result


Reference

About

auto convert json to swift struct

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published