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 15,637 public repositories matching this topic...

sheetjs
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
editor.js
PaulKinlan
PaulKinlan commented Jan 3, 2020

The current behaviour of the onChange event mandates that the callback needs to be in a closure on the config object because the editor instance isn't available from the onChange event any other way.

e.g

let editor = new EditorJS({
  ...
  onChange: changeHandler
})
changeHandler = () => {  editor.save()  } 

I don't always have access to the editor instance in some abstraction

fastapi
tiangolo
tiangolo commented Feb 10, 2020

Describe the bug

The generated OpenAPI schema duplicates parameter IDs when used with dependencies.

To Reproduce

Steps to reproduce the behavior with a minimum self-contained file.

  • Create a file with:
from fastapi import Depends, FastAPI
from starlette.testclient import TestClient

app = FastAPI()


async def user_exists(user_id: int):
    return True
fx
antonmedv
antonmedv commented Dec 11, 2019

Currently, each argument to fx treated as an anonymous function. Here is an example:

fx 'groupBy("commit.author.name")' 'mapValues(size)' toPairs 'sortBy(1)' reverse 'take(10)' fromPairs

But this requires a lot of ' quotes. My idea is to split the argument by whitespaces . So next will be possible to write:

fx 'groupBy("commit.author.name") mapValues(size) toPairs so
phill-85
phill-85 commented Sep 28, 2019

Currently HTTPBIN implements the status code 103, however it isn't all that useful.

From my understanding, 103 should be be followed by another status code when the request is complete.

I want to try and implement this behaviour, where should it be implemented? Perhaps there should be a new route for "/informational" ?

jjwt
aamarfii
aamarfii commented Nov 27, 2019
/**
 * Returns the JWT <a href="https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-25#section-4.1.6">
 * <code>iat</code></a> (issued at) timestamp or {@code null} if not present.
 *
 * <p>If present, this value is the timestamp when the JWT was created.</p>
 *
 * @return the JWT {@code nbf} value or {@code null} if not present.
 */
Date getIssu

Created by Douglas Crockford

Released 2005

Website
www.json.org
Wikipedia
Wikipedia

Related Topics

database xml react
You can’t perform that action at this time.