fbpx
Wikipedia

Name–value pair

A name–value pair, also called an attribute–value pair, key–value pair, or field–value pair, is a fundamental data representation in computing systems and applications. Designers often desire an open-ended data structure that allows for future extension without modifying existing code or data. In such situations, all or part of the data model may be expressed as a collection of 2-tuples in the form <attribute name, value> with each element being an attribute–value pair. Depending on the particular application and the implementation chosen by programmers, attribute names may or may not be unique.

Example of a web form with name-value pairs

Examples of use edit

Some of the applications where information is represented as name-value pairs are:

Use in computer languages edit

Some computer languages implement name–value pairs, or more frequently collections of attribute–value pairs, as standard language features. Most of these implement the general model of an associative array: an unordered list of unique attributes with associated values. As a result, they are not fully general; they cannot be used, for example, to implement electronic mail headers (which are ordered and non-unique).

In some applications, a name–value pair has a value that contains a nested collection of attribute–value pairs. Some data serialization formats such as JSON support arbitrarily deep nesting.[2] Other data representations are restricted to one level of nesting, such as INI file's section/name/value.

See also edit

References edit

  1. ^ Peter W. Resnick. "Internet Message Format". tools.ietf.org. Retrieved 2018-10-02.
  2. ^ "JSON Objects". www.w3schools.com. Retrieved 2018-10-02.

name, value, pair, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, december. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Name value pair news newspapers books scholar JSTOR December 2009 Learn how and when to remove this message A name value pair also called an attribute value pair key value pair or field value pair is a fundamental data representation in computing systems and applications Designers often desire an open ended data structure that allows for future extension without modifying existing code or data In such situations all or part of the data model may be expressed as a collection of 2 tuples in the form lt attribute name value gt with each element being an attribute value pair Depending on the particular application and the implementation chosen by programmers attribute names may or may not be unique Example of a web form with name value pairs Contents 1 Examples of use 2 Use in computer languages 3 See also 4 ReferencesExamples of use editSome of the applications where information is represented as name value pairs are E mail in RFC 2822 headers 1 Query strings in URLs Optional elements in network protocols such as IP where they often appear as TLV type length value triples Bibliographic information as in BibTeX and Dublin Core metadata Element attributes in SGML HTML and XML Some kinds of database systems namely a key value database OpenStreetMap map data Windows registry entries Environment variablesUse in computer languages editSome computer languages implement name value pairs or more frequently collections of attribute value pairs as standard language features Most of these implement the general model of an associative array an unordered list of unique attributes with associated values As a result they are not fully general they cannot be used for example to implement electronic mail headers which are ordered and non unique In some applications a name value pair has a value that contains a nested collection of attribute value pairs Some data serialization formats such as JSON support arbitrarily deep nesting 2 Other data representations are restricted to one level of nesting such as INI file s section name value See also editAttribute computing Entity attribute value model Key value database Query stringReferences edit Peter W Resnick Internet Message Format tools ietf org Retrieved 2018 10 02 JSON Objects www w3schools com Retrieved 2018 10 02 Retrieved from https en wikipedia org w index php title Name value pair amp oldid 1218500632, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.