Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
J
JsonConfig
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Michael Wieland
  • JsonConfig
  • Wiki
  • Structure

Last edited by Programie Dec 16, 2014
Page history

Structure

Template

{
	"path.to.my.value" :
	{
		"defaultValue" : "Some default value"
	},
	"path.to.my.defaultValue" :
	{
		"defaultValue" : "Set by template"
	},
	"path.to.my.otherValue" :
	{
	},
	"path.to.another.path" :
	{
		"defaultValue" : "This is the default value"
	}
}

User config

The user config is the file which contains the values set by the setValue() method.

The getValue() method will first try to get the value from the user config and fallback to the default value defined in the template.

{
	"path" :
	{
		"to" :
		{
			"my" :
			{
				"value" : null
				"defaultValue" : null,
				"otherValue : "This must be set"
			},
			"another" :
			{
				"path" : "The default value has been replaced"
			}
		}
	}
}
Clone repository
  • Configuration Template
  • Examples
  • Home
  • Structure