A Xamarin.Forms element for displaying Json as a user-friendly label
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
SPControls
.gitattributes
.gitignore
LICENSE
README.md

README.md

JsonTextView

A simple Xamarin.Forms element for displaying Json as a user-friendly label.

Features

  • Splits camel cased naming into spaced readable words
  • Allows for turning camel cased names to be upper-cased

Missing Features

  • Parse and render nested objects
  • Allow for text color changes and style changes
  • Allow for other configuration options

JsonTextView

Usage

XAML

<ContentPage
  ...
  xmlns:sp="clr-namespace:SPControls;assembly=SPControls"
  ...>
    <Grid>
      <sp:JsonTextView Json="{Binding JsonString}" />
    </Grid>
</ContentPage>

or in C#

...

var jsonTextView = new SPControls.JsonTextView();
jsonTextView.Json = jsonString;
...