Today, I going to introduce a quick method to create our custom object from JSON.
All we need to do is:
Install VSCode if you didn't have one.
Install VSCode Paste JSON as Code Extension
To install VS code on MAC OS your can run brew cask install visual-studio-code or quick search how to install on Google.
Open VS code, Click on Extension and search for Parste JSON and Install it.
Now you need quit and reopen your VSCode.
Create new JSONFile with .json extension
Press Command + Shift + P to open menu
Choose Open Quick type for JSON
Press Command + Shift + P again to set quick type target language
I'm using Swift so I choose Swift
Now you can see JSON convert to your target language
Today, I going to introduce a quick method to create our custom object from JSON.
All we need to do is:
To install VS code on MAC OS your can run
brew cask install visual-studio-code
or quick search how to install on Google.Open VS code, Click on Extension and search for Parste JSON and Install it.
Now you need quit and reopen your VSCode. Create new JSONFile with .json extension Press Command + Shift + P to open menu
Choose Open Quick type for JSON Press Command + Shift + P again to set quick type target language I'm using Swift so I choose Swift Now you can see JSON convert to your target language
Now simple copy your object to use.