Avatar of PSCTECH
PSCTECH
 asked on

how do I add indents to the items in a list in .json (c#)

I would like something like:

My list
       Item 1
       Item 2
       Item 3  

Here's my current non-indenting code
     {  
      "type": "paragraph",
                  "content": "The following have limitations on the amount that can be claimed:",
                  "listofitems": [
                        { "itemtext": "my text her" },
                        { "itemtext": "my second line of text" },
                        { "itemtext": "my final line of text" }
                  ],
                  "listunstyled": false,
                  "isunordered": true
            },
C#JSON

Avatar of undefined
Last Comment
Fernando Soto

8/22/2022 - Mon
Fernando Soto

Please explain /with more detail what you mean by, "add indents to the items in a list in .json", what type of project, what control are you trying to interact with and what version of Visual Studio are you using.
PSCTECH

ASKER
VS 2015

I am currently using a paragraph control with list of items. The indents I am talking about are shown below for Item1,2 and 3.  
I am open to using any control in the viewmodel .json that will result in text in the UI with spacing before it.  (see below example):

My list
       Item 1
       Item 2
       Item 3
Fernando Soto

I assume this is a Web app?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
PSCTECH

ASKER
yes
ASKER CERTIFIED SOLUTION
Fernando Soto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
PSCTECH

ASKER
Thank you very much for taking the time and putting in the effort on this.  I appreciate it very much.
Fernando Soto

Not a problem PSCTECH; glad I was able to help.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.