Skip to content
#

JSON

json logo

JSON (JavaScript Object Notation) is a standard file format that uses text to communicate data objects to array data types. This notation makes it easy for applications to parse and generate files. JSON grew out of the need to have a real-time server-to-web browser communication.

Here are 16,194 public repositories matching this topic...

httpie
nhooey
nhooey commented Mar 6, 2020

It's not clear from the website's documentation, or the --help output, how to do the following equivalent curl task:

Post a raw JSON query to ElasticSearch:

curl \
    --header "Content-Type: application/json" \
    --request POST \
    --data '{ "_source": [ "restricted_countries.*" ], "query": { "match_all": {} }, "size": 1000 }' \
    'http://localhost:9200/_search'

T

prettier
lydell
lydell commented Mar 22, 2020

Now that Prettier 2.0 has been released with its improved CLI, I think we should add a section do the docs showing a recommended example setup.

  1. Recommend using an editor extension that lets you run Prettier from your editor. Link to popular extensions. Maybe add some tips on how to configure for example prettier-vscode.
  2. Recommend adding an empty ({}) .prettierrc.json to signify to edit
sheetjs
dandv
dandv commented Jan 6, 2020
const XLSX = require('xlsx');

const wb = XLSX.utils.book_new();

const ws = XLSX.utils.json_to_sheet([]);

XLSX.utils.book_append_sheet(wb, ws, 'Bug sheet');

ws.A1 = { t: 's', f: 'square' };

XLSX.writeFile(wb, 'formula.ods');

The resulting .ODS file contains:

<table:table-cell table:formula="of:=square" office:value-type="string"><text:p>undefined</text:p></table
jethmalani
jethmalani commented Nov 14, 2017

What did you do?

When I do this (from your docs):

guard let dataFromString = text.data(using: .utf8, allowLossyConversion: false) else {return} let json = JSON(data: dataFromString)

I get an error "Call can throw, but it is not marked with 'try' and the error is not handled"

I did this. I just want to confirm that is right. It worked for me.

`guard let dataFromString

json
fastapi
tiangolo
tiangolo commented Feb 9, 2020

Is your feature request related to a problem

Is your feature request related to a problem?

It's still not documented how to do redirections.

The solution you would like

We need a short section in the docs, in the Advanced User Guide, about how to do redirections.

It would have to explain how to use [Starlette's RedirectResponse](https://www.starlette.io/responses/#redirect

editor.js
fx
heyarne
heyarne commented Nov 28, 2019

Hi! Thanks for this tool, I searched for something like this for a looong time. :) One question: Would it be possible to add a shortcut to search backwards (i.e. going back to the previous result, possibly wrapping around at the top)? I immediately assumed it would be possible via N (like in vim) or p, but realized both keys don't have any effect.

simdjson
rajsite
rajsite commented Feb 11, 2020

I'm upgrading a build environment from python 2 to python 3 and noticed that endpoints with seeded random numbers are not returning the same values. It seems to be related to usage of randint:
https://github.com/postmanlabs/httpbin/blob/f8ec666b4d1b654e4ff6aedd356f510dcac09f83/httpbin/core.py#L1448

It seems like randint is not seed safe and it looks like only random() is: https://bugs.python.o

zachelrath
zachelrath commented Jul 9, 2019

Currently, when SortMapKeys is set to true in Config, map keys are sorted using a standard alphanumeric sort. It should be possible to specify a custom map key sorting function to use, in order to prioritize certain map keys over others.

Example: Standard SortMapKeys behavior:

cfg := jsoniter.Config{
   SortMapKeys: true,
}.Froze()

m := map[string]int{
   "beta": 2,
   "alp
callumlocke
callumlocke commented Oct 10, 2019

I found Pino when googling for bunyan alternatives, because I'm hoping to replace bunyan in a Node web server project I've inherited.

It would be useful if Pino could add a "Switching from bunyan" docs page as a starting point for people in this position, to list any important conceptual differences and to map bunyan concepts to corresponding Pino concepts.

Created by Douglas Crockford

Released 2005

Website
www.json.org
Wikipedia
Wikipedia
You can’t perform that action at this time.