NetsJSON

JSON format for network analysis

On February 26, 2019 the format was renamed from netJSON to netsJSON because of the collision with http://netjson.org/rfc.html.

C:\Users\batagelj\Documents\papers\2015\sreda1251\slides     JSON in omrežja  1, 2
C:\Users\batagelj\Documents\papers\2016\sreda1257\slides     JSON in omrežja  3
C:\Users\batagelj\Documents\papers\2017\INSNA\ws             temporal Nets, JSON
C:\Users\batagelj\Documents\papers\2016\EuSN\ws\slides       net vis, JSON

C:\Users\batagelj\Documents\papers\2015\ECPR\slides          networks
C:\Users\batagelj\Documents\papers\2020\UP\NetsJSON
C:\Users\batagelj\Documents\papers\2017\Moscow\EDA\slides

D:\vlado\docs\papers\2020\UP\NetsJSON
D:\vlado\docs\papers\2016\EuSN\ws\slides
D:\vlado\work\python\graph\SVG\EUSN
D:\vlado\work\python\graph\JSON

JavaScript online editors

NA, NaN, info, null

> library(rjson)
> testString <- c(1,2,3,4,NA,NaN,Inf,8,9)
> testString
[1]   1   2   3   4  NA NaN Inf   8   9
> toJSON(testString)
[1] "[1,2,3,4,\"NA\",\"NaN\",\"Inf\",8,9]"
> library(jsonlite)
The following objects are masked from ‘package:rjson’:
    fromJSON, toJSON
> J <- toJSON(testString)
> J
[1,2,3,4,"NA","NaN","Inf",8,9]
> fromJSON(J)
[1]   1   2   3   4  NA NaN Inf   8   9
>

json — JSON encoder and decoder — Python 3.8.2 … docs.python.org › library › json If allow_nan is true, their JavaScript equivalents ( NaN , Infinity , -Infinity ) will be used.

vlado/work/nj.txt · Last modified: 2020/05/18 03:57 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki