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 4,166 public repositories matching this topic...

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
Morriz
Morriz commented Apr 18, 2020

Your documentation shows no way to replace an objects value. Any updates to an object with:

db.get(name).find(selectors).assign(data).write()

merges the data with the existing object...not what I'd expect.

How can we replace a record without merging? Can you update your docs?

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
temp3l
temp3l commented Dec 25, 2019

reproduce:

  • try a schema without "properties" keyword in the playground
  • and a initial-formData of type object ...

=> make sure the formData is a string to have it fixed

Warning: Failed prop type: Invalid prop `value` supplied to `TextWidget`.
    in TextWidget
    in Unknown (created by StringField)
    in StringField (created by SchemaField)
    in div (created by WrapI
sgiebels
sgiebels commented Apr 8, 2019

When I have a malformed JSON (e.g. an extra or a missing comma)
When the validation fails, I get:
$ resume export --theme jsonresume-theme-eloquent resume.html
Done! Find your new .html resume at:
resume.html

No mention of an error, and the created HTML file does not display correctly.

When I fix the errors, after running
$ jsonlint-php resume.json
to see all the errors in my JSON,

gterras
gterras commented Jan 30, 2018

The current example in https://github.com/benjamine/jsondiffpatch/blob/master/docs/formatters.md does not trigger html arrows display.

This is the closest I've came up with to make it work :

  var delta = jsondiffpatch.diff(left, right);
  // left is optional, if specified unchanged values will be visible too

  var el = document.getElementById('the-diff');

 el.innerHTML = jso
WebMechanic
WebMechanic commented Apr 24, 2020

Request type

  • Please close this issue, I accidentally submitted it without adding any details
  • New documentation
  • Correction or update

Details

Burried in the Formal Syntax is <media-or> that allows a list of media rules to use the or keyword. As I understand this change was added in [CSS Conditional Rules Module Level 3](https

Eomm
Eomm commented Jan 19, 2020

🐛 Bug Report

For types array the items key is not mandatory by the standard, but it is needed by fast-json-stringify.
We should set a default instead

To Reproduce

var fastJsonStringify = require("fast-json-stringify")
const str = fastJsonStringify({
  "type": "object",
  "properties": {
    "foo": {
      "type": "array"
       // , items: { type: 'string' } // unco
soullivaneuh
soullivaneuh commented Sep 5, 2019

This tools is great, we can define and validate various config from file, env, cli arg... and we can even put a short doc on each field.

But what if I want to display a clear and concise doc reference on a website on a cli usage?

Should this package be able to handle that? If not, is it compatible with other packages doing that need?

Thanks

Created by Douglas Crockford

Released 2005

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