Subject: Re: JSON Questions From: Jack Woehr Date: Tue, 7 Jan 2020 08:42:23 -0700 List-archive: List-help: List-id: Midrange Systems Technical Discussion List-post: List-subscribe: , List-unsubscribe: ,

On Tue, Jan 7, 2020 at 8:32 AM Art Tostaine, Jr. <atostaine@xxxxxxxxx>
wrote:

A trading partner sent a sample of JSON data that they require. Is it
possible/correct to specify a Key name for JSON_ARRAY?

If I understand your question, answer is, "Sure, if it's inside an object."

Nest as deeply as you like.

*{ "foo" : [ "bar", "woof"], "arf" : ["zotz", {"elephant" : "gray",
"some_numbers": [1, [2, 3]]}]*

Take a look at some raw Jupyter Notebook code for examples. Here's a
snippet (incomplete, not closed) from IBM Qiskit Textbook (open source,

*{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source":
[ "# Bernstein-Vazirani Algorithm" ] }, { "cell_type":
"markdown", "metadata": {}, "source": [ "In this section, we first
introduce the Bernstein-Vazirani problem, and classical and quantum
algorithms to solve it. We then implement the quantum algorithm using
Qiskit, and run on a simulator and device.\n", "\n", "##
Contents\n", "\n", "1. [Introduction](#introduction)\n", " -
[Bernstein-Vazirani Problem](#bvproblem)\n", " - [Bernstein-Vazirani
Algorithm](#bvalgorithm)\n", "\n", "2. [Example](#example)\n",
"\n", "3. [Qiskit Implementation](#implementation)\n", " -
[Simulation](#simulation)\n", " - [Device](#device)\n", "\n",
"4. [Problems](#problems)\n", "\n", "5. [References](#references)"
] }, *

..... etc.

As an Amazon Associate we earn from qualifying purchases.