Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Symfony-api-doc-generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
Symfony-api-doc-generator
Commits
79a1975c
Commit
79a1975c
authored
Aug 17, 2022
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
parse json from input
parent
514307c3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Symfony-api-doc-generator/Program.cs
+1
-10
1 addition, 10 deletions
Symfony-api-doc-generator/Program.cs
with
1 addition
and
10 deletions
Symfony-api-doc-generator/Program.cs
+
1
−
10
View file @
79a1975c
using
Newtonsoft.Json.Linq
;
Console
.
WriteLine
(
"Please insert the JSON, then press CTRL & D"
);
//string input = Console.In.ReadToEnd();
string
input
=
@"{
'CPU': 'Intel',
'Speed': 100,
'Overclocked': true,
Drives: [
'DVD read/writer',
'500 gigabyte hard drive'
]
}"
;
string
input
=
Console
.
In
.
ReadToEnd
();
string
ParseJsonArray
(
JArray
json
,
int
indent
=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment