DB2 NoSQL JSON feature (i) DB2 NoSQL JSON Introduction

Source: Internet
Author: User
Tags arrays command line db2 ibm db2 json mongodb

Fast-changing application environments require a flexible mechanism for storing data and passing data between different application tiers. As it turns out, JSON (Java Script Object notation) is an important technology for moving, interactive applications that reduces the overhead of pattern design and eliminates the need for data conversion.

DB2 NoSQL JSON enables developers to write applications using the JSON-oriented popular query language created by MongoDB to interact with data stored in IBM DB2 for Linux, UNIX, and Windows. This driver based solution enhances the flexibility of JSON data representation in the RDBMS context, which provides existing enterprise features and quality of service. This DB2 NoSQL JSON feature supports a command line processor, a Java API, and a Wire Listener that processes JSON documents.

Brief introduction

A new era of application development

Now there is a new style of application evolution that is driven by a variety of forces that blend together. The increasing speed and popularity of mobile and social applications are prompting people to interact more deeply through electronic means. Cloud computing makes computing resources available at all times, and the advent of large data technologies makes it possible to gain insights from the vast amounts of data collected from the Internet, sensors and mobile devices. The availability of user interaction data, easy access to computing resources, and advances in large data technologies enable businesses to predict customer behavior and needs much faster than ever before. All these forces combine to provide a new opportunity for businesses to deal with their customers in a meaningful way. In fact, users who use social media and mobile applications expect applications to be more attractive and easy to access through a variety of devices, specifically their mobile devices.

In order to seize these new opportunities, a new era of application development has emerged. The application no longer takes 6-9 months or more to complete the process from concept to deployment. Applications can be implemented quickly to cope with business problems or opportunities, and they typically have a short lifespan. Many different technologies can be combined to quickly implement solutions, while JavaScript and JSON (JavaScript's data representation language) are almost universal. Although this new way of developing applications initially appears in the entrepreneurial team, more and more people are using them to address the agile development needs of both the enterprise and the public domain.

These new applications were first designed and delivered for mobile devices, and they drive the development of social and mobile interactions. Companies now want to quickly open up channels for these enterprise systems so they can participate in these new mobile and social interactions. They are moving from a world based on simple business to an interactive world. Organizations need to be able to extend and supplement enterprise records systems with participatory systems, while maintaining enterprise functionality intact-health, privacy, security, and high availability. IBM has implemented a popular JSON Api-mongodb API in our DB2 platform to facilitate this use of JSON.

What is JSON?

JSON (JavaScript Object notation) is a lightweight data interchange format specified in the IETF RFC 4627. It is designed to be a minimal, portable, and textual subset of JavaScript, which is easy to implement, easy to read, and easy to use. It is not dependent on language, because most languages have features that can easily correspond to JSON. JSON can be used to exchange data between programs written in all modern programming languages. In addition, because JSON is formatted with text, it is easy to read by humans and machines.

The following is a simple example of a JSON document:

Listing 1. A simple example of a JSON document

{"ISBN": "123-456-222", "  
 Author": 
   [
    {
      "FirstName": "Doe",
      "LastName": "Jane"
    },
    { "
      FirstName": "Doe",
      "LastName": "John"
    }
   ]
 "title": "The ultimate Database Study Guide", "  
 abstract": "What you always wanted to know about databases and were afraid to asked", 
 "price": 28.00, 
 "Sale S ": 
    {qty:1234,
      amt:31532.50
    }
 " category ": [" Non-fiction "," Technology "]
 " ratings ": [10, 5 , 112,]
}

JSON helps you achieve the portability of structured data by defining a few concepts. The main concept in JSON is an object, which is a collection of name/value pairs, where the value can be any JSON value. There are 4 atomic concepts in JSON that can be common in most programming languages:

String

Digital

Boolean value

Special "NULL" value

Array introduces an ordered sequence of values, which can also be a JSON value with one of the 4 JSON types mentioned earlier. JSON objects can be nested, but they are usually not nested very deep.

Although JSON is a subset of the JavaScript programming language, it is essentially language-independent. Most languages, old or new, have features that can easily be set up with the JSON concept. For example, Hachitu, objects, structs, records, and associative arrays are data types that are related to JSON object types, while arrays, vectors, and list types are related to JSON array types.

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/database/db2/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.