× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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,
Apache 2 License):

































*{ "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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.