Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample JSON showing the structure of the feed for a project with fields (Title, URL, Answer, Paragraphs[]). Paragraphs being a multifield (array)
{
"contents": [
{
"TITLE": "Content 1 Title",
"CATEGORY": ["category",
"subcategory"
],
"PROFILES": {
"1": "F2B_DEFAULT",
"2": "F2B_INACTIVE",
"3": {
"PARAGRAPHS": [
"Content 1, Profile 3, PARAGRAPH1",
"Content 1, Profile 3, PARAGRAPH2",
"Content 1, Profile 3, PARAGRAPH3"
],
"ANSWER":"Content 1, Profile 3, ANSWER"
},
"4": "F2B_INACTIVE",
"5": {
"PARAGRAPHS": [
"Content 1, Profile 5, PARAGRAPH1",
"Content 1, Profile 5, PARAGRAPH2"
]
}
},
"fields": {
"URL": "http://www.unique-url.com/page-1.html",
"PARAGRAPHS": ["Content 1, Profile Default, PARAGRAPH1",
"Content 1, Profile Default, PARAGRAPH2"
],
"ANSWER":"Content 1, profile Default ANSWER"
}
},
{
"TITLE": "Content/page title - page 2",
"CATEGORY": ["category",
"subcategory"
],
"PROFILES": {
"1": "F2B_DEFAULT",
"2": "F2B_INACTIVE",
"3": {
"PARAGRAPHS": [
"Content 2, Profile 3, PARAGRAPH1",
"Content 2, Profile 3, PARAGRAPH2",
"Content 2, Profile 3, PARAGRAPH3"
]
},
"4": "F2B_INACTIVE",
"5": {
"ANSWER": "Content 2, Profile 5, ANSWER"
}
},
"fields": {
"URL": "http://www.unique-url.com/page-2.html",
"PARAGRAPHS": ["Content 2, Profile Default, PARAGRAPH1",
"Content 2, Profile Default, PARAGRAPH2"
],
"ANSWER":"Content 2, profile Default ANSWER"
}
}]
}

Content Digest JSON Format

The Content Digest Tool allows index from JSON feeds into Inbenta Backstage. Several feeds can be active in one instance, this gist illustrates a sample format.

The instance has the following fields:

  • Title
  • URL - Unique identifier
  • ANSWER - Text field
  • PARAGRAPHS (multi-field) - Array of Text fields

And the following profiles:

  • 0 - default, exists for all instances
  • 1 - Logged-in Users
  • 2 - Anonymous
  • 3 - Agents
  • 4 - Premium Users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment