/dports/math/R-cran-Zelig/Zelig/R/ |
H A D | create-json.R | 45 z5ls$toJSON() 48 z5logit$toJSON() 51 z5ivreg$toJSON() 54 z5probit$toJSON() 60 z5normal$toJSON() 63 z5gamma$toJSON() 66 z5negbin$toJSON() 69 z5exp$toJSON() 75 z5tobit$toJSON() 144 z5ar$toJSON() [all …]
|
/dports/converters/R-cran-jsonlite/jsonlite/tests/testthat/ |
H A D | test-toJSON-numeric.R | 4 expect_that(toJSON(35), equals("[35]")); 5 expect_that(toJSON(35L), equals("[35]")); 6 expect_that(toJSON(c(35, pi), digits=5), equals("[35,3.14159]")); 7 expect_that(toJSON(pi, digits=0), equals("[3]")); 8 expect_that(toJSON(pi, digits=2), equals("[3.14]")); 9 expect_that(toJSON(pi, digits=10), equals("[3.1415926536]")); 17 expect_that(toJSON(data.frame(foo=35)), equals("[{\"foo\":35}]")); 30 expect_equal(toJSON(100), '[100]') 31 expect_equal(toJSON(100, always_decimal = TRUE), '[100.0]') 35 expect_equal(toJSON(100L), '[100]') [all …]
|
H A D | test-toJSON-POSIXt.R | 14 expect_that(toJSON(object), equals("[\"2013-06-17 22:33:44\"]")); 15 expect_that(toJSON(object, POSIXt="string"), equals("[\"2013-06-17 22:33:44\"]")); 16 expect_that(toJSON(object, POSIXt="ISO8601"), equals("[\"2013-06-17T22:33:44\"]")); 17 expect_that(toJSON(object, POSIXt="sdfsdsdf"), throws_error("one of")); 22 expect_that(toJSON(object, POSIXt="epoch"), equals("[1371474224000]")); 23 expect_that(toJSON(object, POSIXt="mongo"), equals("[{\"$date\":1371474224000}]")); 31 expect_that(toJSON(list(foo=object)), equals("{\"foo\":[\"2013-06-17 22:33:44\"]}")); 34 expect_that(toJSON(list(foo=object), POSIXt="sdfsdsdf"), throws_error("one of")); 66 expect_that(toJSON(object), equals("[\"2013-06-17 22:33:44\",null]")); 67 expect_that(toJSON(object, na="string"), equals("[\"2013-06-17 22:33:44\",\"NA\"]")); [all …]
|
H A D | test-toJSON-zerovec.R | 4 expect_that(toJSON(character()), is_identical_to("[]")) 5 expect_that(toJSON(logical()), is_identical_to("[]")) 6 expect_that(toJSON(complex()), is_identical_to("[]")) 8 expect_that(toJSON(double()), is_identical_to("[]")) 9 expect_that(toJSON(integer()), is_identical_to("[]")) 10 expect_that(toJSON(list()), is_identical_to("[]")) 11 expect_that(toJSON(factor()), is_identical_to("[]")) 13 expect_that(toJSON(matrix(nrow=0, ncol=0)), is_identical_to("[]")) 14 expect_that(toJSON(as.matrix(numeric())), is_identical_to("[]")) 15 expect_that(toJSON(data.frame()), is_identical_to("[]")) [all …]
|
H A D | test-toJSON-logical.R | 4 expect_that(toJSON(TRUE), equals("[true]")); 5 expect_that(toJSON(FALSE), equals("[false]")); 6 expect_that(toJSON(as.logical(NA)), equals("[null]")) 7 expect_that(toJSON(as.logical(NA), na="string"), equals("[\"NA\"]")) 8 expect_that(toJSON(c(TRUE, NA, FALSE)), equals("[true,null,false]")); 9 expect_that(toJSON(c(TRUE, NA, FALSE), na="string"), equals("[true,\"NA\",false]")); 10 expect_that(toJSON(logical()), equals("[]")); 14 expect_that(toJSON(data.frame(foo=TRUE)), equals("[{\"foo\":true}]")); 15 expect_that(toJSON(data.frame(foo=FALSE)), equals("[{\"foo\":false}]")); 16 expect_that(toJSON(data.frame(foo=as.logical(NA))), equals("[{}]")); [all …]
|
H A D | test-toJSON-complex.R | 4 expect_that(toJSON(complex(real=2, imaginary=2)), equals("[\"2+2i\"]")); 5 expect_that(toJSON(complex(real=NA, imaginary=2)), equals("[\"NA\"]")); 6 expect_that(toJSON(complex(real=1, imaginary=NA)), equals("[\"NA\"]")); 7 expect_that(toJSON(complex(real=NA, imaginary=2), na="null"), equals("[null]")); 11 expect_that(toJSON(data.frame(foo=complex(real=1, imaginary=2))), equals("[{\"foo\":\"1+2i\"}]")); 12 expect_that(toJSON(data.frame(foo=complex(real=NA, imaginary=2))), equals("[{}]")); 13 …expect_that(toJSON(data.frame(foo=complex(real=NA, imaginary=2)), na="string"), equals("[{\"foo\":… 14 …expect_that(toJSON(data.frame(foo=complex(real=NA, imaginary=2)), na="null"), equals("[{\"foo\":nu… 19 expect_that(toJSON(x), equals("[\"1+3i\",\"2+2i\",\"NA\"]")); 20 expect_that(toJSON(x, complex="list"), equals("{\"real\":[1,2,\"NA\"],\"imaginary\":[3,2,1]}")); [all …]
|
H A D | test-toJSON-Date.R | 5 expect_that(toJSON(object), equals("[\"1985-06-18\"]")); 6 expect_that(toJSON(object, Date="ISO8601"), equals("[\"1985-06-18\"]")); 7 expect_that(toJSON(object, Date="epoch"), equals("[5647]")); 8 expect_that(toJSON(object, Date="adsfdsfds"), throws_error("should be one of")); 12 expect_that(toJSON(list(foo=object)), equals("{\"foo\":[\"1985-06-18\"]}")); 13 expect_that(toJSON(list(foo=object), Date="ISO8601"), equals("{\"foo\":[\"1985-06-18\"]}")); 14 expect_that(toJSON(list(foo=object), Date="epoch"), equals("{\"foo\":[5647]}")); 15 expect_that(toJSON(list(foo=object), Date="adsfdsfds"), throws_error("should be one of")); 19 expect_that(toJSON(data.frame(foo=object)), equals("[{\"foo\":\"1985-06-18\"}]")); 21 expect_that(toJSON(data.frame(foo=object), Date="epoch"), equals("[{\"foo\":5647}]")); [all …]
|
H A D | test-toJSON-NULL-values.R | 9 expect_true(validate(toJSON(x))) 10 expect_that(fromJSON(toJSON(x)), equals(namedlist)) 11 expect_that(toJSON(x), equals("{}")) 12 expect_that(toJSON(x, null="list"), equals("{}")) 14 expect_true(validate(toJSON(y))) 15 expect_that(toJSON(y, null="list"), equals("{\"a\":{},\"b\":[null]}")) 16 expect_that(toJSON(y, null="null"), equals("{\"a\":null,\"b\":[null]}")) 17 expect_that(fromJSON(toJSON(y, null="null")), equals(y)) 20 expect_true(validate(toJSON(z))) 21 expect_that(toJSON(z), equals("{\"a\":[1],\"b\":[]}")) [all …]
|
/dports/converters/R-cran-rjson/rjson/inst/unittests/ |
H A D | test.tojson.r | 7 j <- toJSON( x, "C" ) 11 j <- toJSON( x, "C" ) 15 j <- toJSON( x, "C" ) 19 j <- toJSON( x, "C" ) 23 j <- toJSON( x, "C" ) 28 j <- toJSON( x, "C" ) 32 j <- toJSON( x, "C" ) 36 j <- toJSON( x, "C" ) 40 j <- toJSON( x, "C" ) 44 j <- toJSON( x, "C" ) [all …]
|
/dports/lang/ghc/ghc-8.10.7/libraries/Cabal/cabal-install/Distribution/Client/Utils/ |
H A D | Json.hs | 14 , ToJSON(toJSON) 59 toJSON :: a -> Value 62 toJSON () = Array [] function 65 toJSON = id function 68 toJSON = Bool function 71 toJSON = Array . map toJSON function 75 toJSON (Just a) = toJSON a function 78 toJSON (a,b) = Array [toJSON a, toJSON b] function 81 toJSON (a,b,c) = Array [toJSON a, toJSON b, toJSON c] function 84 toJSON (a,b,c,d) = Array [toJSON a, toJSON b, toJSON c, toJSON d] function [all …]
|
/dports/devel/hs-cabal-install/cabal-cabal-install-3.4.0.0/cabal-install/Distribution/Client/Utils/ |
H A D | Json.hs | 14 , ToJSON(toJSON) 59 toJSON :: a -> Value 62 toJSON () = Array [] function 65 toJSON = id function 68 toJSON = Bool function 71 toJSON = Array . map toJSON function 75 toJSON (Just a) = toJSON a function 78 toJSON (a,b) = Array [toJSON a, toJSON b] function 81 toJSON (a,b,c) = Array [toJSON a, toJSON b, toJSON c] function 84 toJSON (a,b,c,d) = Array [toJSON a, toJSON b, toJSON c, toJSON d] function [all …]
|
/dports/lang/ghc/ghc-8.10.7/utils/haddock/haddock-api/src/Haddock/Utils/ |
H A D | Json.hs | 14 , ToJSON(toJSON) 62 toJSON :: a -> Value 65 toJSON () = Array [] function 68 toJSON = id function 71 toJSON = Bool function 74 toJSON = Array . map toJSON function 78 toJSON (Just a) = toJSON a function 81 toJSON (a,b) = Array [toJSON a, toJSON b] function 84 toJSON (a,b,c) = Array [toJSON a, toJSON b, toJSON c] function 87 toJSON (a,b,c,d) = Array [toJSON a, toJSON b, toJSON c, toJSON d] function [all …]
|
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/lsp-types-1.3.0.1/src/Language/LSP/Types/ |
H A D | Method.hs | 204 (==) = (==) `on` toJSON 206 compare = compare `on` (getString . toJSON) 212 (==) = (==) `on` toJSON 214 compare = compare `on` (getString . toJSON) 220 (==) = (==) `on` toJSON 222 compare = compare `on` (getString . toJSON) 338 toJSON (SomeMethod m) = toJSON m function 341 toJSON (SomeClientMethod m) = toJSON m function 343 toJSON (SomeServerMethod m) = toJSON m function 351 toJSON SExit = A.String "exit" function [all …]
|
H A D | DocumentSymbol.hs | 71 toJSON SkFile = Number 1 function 72 toJSON SkModule = Number 2 function 73 toJSON SkNamespace = Number 3 function 74 toJSON SkPackage = Number 4 function 75 toJSON SkClass = Number 5 function 76 toJSON SkMethod = Number 6 function 77 toJSON SkProperty = Number 7 function 78 toJSON SkField = Number 8 function 79 toJSON SkConstructor = Number 9 function 80 toJSON SkEnum = Number 10 function [all …]
|
H A D | Completion.hs | 47 toJSON CiText = A.Number 1 function 48 toJSON CiMethod = A.Number 2 function 49 toJSON CiFunction = A.Number 3 function 50 toJSON CiConstructor = A.Number 4 function 51 toJSON CiField = A.Number 5 function 52 toJSON CiVariable = A.Number 6 function 53 toJSON CiClass = A.Number 7 function 54 toJSON CiInterface = A.Number 8 function 55 toJSON CiModule = A.Number 9 function 260 toJSON PlainText = A.Number 1 function [all …]
|
/dports/net-im/matterhorn/matterhorn-50200.13.0/_cabal_deps/mattermost-api-50200.11.0/src/Network/Mattermost/WebSocket/ |
H A D | Types.hs | 120 toJSON WMTyping = "typing" function 121 toJSON WMPosted = "posted" function 135 toJSON WMHello = "hello" function 143 toJSON WMWebRTC = "webrtc" function 153 toJSON (WMUnknownEvent s) = toJSON s function 184 toJSON WebsocketEvent { .. } = A.object function 233 toJSON WEData { .. } = A.object function 267 toJSON WEBroadcast { .. } = A.object function 286 toJSON (UserTyping s cId pId) = A.object function 311 toJSON WebsocketActionStatusOK = "OK" function [all …]
|
/dports/converters/R-cran-RJSONIO/RJSONIO/man/ |
H A D | toJSON.Rd | 1 \name{toJSON} 2 \alias{toJSON} 3 \alias{toJSON,list-method} 4 \alias{toJSON,ANY-method} 114 toJSON(1:10) 115 toJSON(rnorm(3)) 140 toJSON(list()) 143 toJSON(I("hi")) 151 toJSON(x) 176 toJSON(obj) [all …]
|
/dports/math/octave-forge-io/io-2.6.4/inst/ |
H A D | toJSON.m | 279 %! assert(toJSON(),''); 282 %! assert(toJSON(''),'""'); 285 %! assert(toJSON([]),'[]'); 288 %! assert(toJSON(0),"0") 297 %! assert(toJSON(pi, 0),'3') 316 %! assert(toJSON("3"),'"3"') 326 %! assert(toJSON('[]'),'[]'); 328 %! assert(toJSON('{}'),'{}'); 330 %! assert(toJSON('""'),'""'); 354 %! json = toJSON(ndmat); [all …]
|
/dports/www/hs-postgrest/postgrest-8.0.0/_cabal_deps/jose-0.8.4/src/Crypto/JOSE/JWA/ |
H A D | JWE.hs | 87 algWithParamsObject a s = object $ ("alg", s) : objectPairs (toJSON a) 90 toJSON RSA1_5 = algObject "RSA1_5" function 91 toJSON RSA_OAEP = algObject "RSA-OAEP" function 92 toJSON RSA_OAEP_256 = algObject "RSA-OAEP-256" function 93 toJSON A128KW = algObject "A128KW" function 94 toJSON A192KW = algObject "A192KW" function 95 toJSON A256KW = algObject "A256KW" function 96 toJSON Dir = algObject "Dir" function 124 toJSON (ECDHParameters epk apu apv) = object $ catMaybes function 144 toJSON (AESGCMParameters iv tag) = object ["iv" .= iv, "tag" .= tag] function [all …]
|
/dports/www/hs-postgrest/postgrest-8.0.0/src/PostgREST/ |
H A D | Error.hs | 88 toJSON ActionInappropriate = JSON.object [ function 92 toJSON InvalidRange = JSON.object [ function 107 toJSON UnsupportedVerb = JSON.object [ function 109 toJSON InvalidFilters = JSON.object [ function 152 toJSON (PgError _ usageError) = JSON.toJSON usageError function 159 toJSON (P.SessionError e) = JSON.toJSON e -- H.Error function 162 toJSON (H.QueryError _ _ e) = JSON.toJSON e function 193 toJSON (H.ClientError d) = JSON.object [ function 318 toJSON NotFound = JSON.object [] function 319 toJSON (PgErr err) = JSON.toJSON err function [all …]
|
/dports/finance/hs-hledger-web/hledger-web-1.19/_cabal_deps/http2-2.0.5/test-frame/ |
H A D | JSON.hs | 70 toJSON e = toJSON $ fromErrorCodeId e function 76 toJSON settings = toJSON $ map (first fromSettingsKeyId) settings function 82 toJSON bs = toJSON $ byteStringToText bs function 90 toJSON (DataFrame body) = object [ function 93 toJSON (HeadersFrame mpri hdr) = object [ function 99 toJSON (PriorityFrame pri) = object [ function 104 toJSON (RSTStreamFrame e) = object [ function 114 toJSON (PingFrame odata) = object [ function 143 padObj = case toJSON fpPad of 208 toJSON (Pad padding) = object [ function [all …]
|
/dports/devel/hs-hoogle/hoogle-5.0.18.2/_cabal_deps/http2-2.0.4/test-frame/ |
H A D | JSON.hs | 70 toJSON e = toJSON $ fromErrorCodeId e function 76 toJSON settings = toJSON $ map (first fromSettingsKeyId) settings function 82 toJSON bs = toJSON $ byteStringToText bs function 90 toJSON (DataFrame body) = object [ function 93 toJSON (HeadersFrame mpri hdr) = object [ function 99 toJSON (PriorityFrame pri) = object [ function 104 toJSON (RSTStreamFrame e) = object [ function 114 toJSON (PingFrame odata) = object [ function 143 padObj = case toJSON fpPad of 208 toJSON (Pad padding) = object [ function [all …]
|
/dports/www/hs-postgrest/postgrest-8.0.0/_cabal_deps/http2-3.0.2/test-frame/ |
H A D | JSON.hs | 70 toJSON e = toJSON $ fromErrorCodeId e function 76 toJSON settings = toJSON $ map (first fromSettingsKeyId) settings function 82 toJSON bs = toJSON $ byteStringToText bs function 90 toJSON (DataFrame body) = object [ function 93 toJSON (HeadersFrame mpri hdr) = object [ function 99 toJSON (PriorityFrame pri) = object [ function 104 toJSON (RSTStreamFrame e) = object [ function 114 toJSON (PingFrame odata) = object [ function 143 padObj = case toJSON fpPad of 208 toJSON (Pad padding) = object [ function [all …]
|
/dports/www/hs-yesod-bin/yesod-bin-1.6.1/_cabal_deps/http2-2.0.6/test-frame/ |
H A D | JSON.hs | 70 toJSON e = toJSON $ fromErrorCodeId e function 76 toJSON settings = toJSON $ map (first fromSettingsKeyId) settings function 82 toJSON bs = toJSON $ byteStringToText bs function 90 toJSON (DataFrame body) = object [ function 93 toJSON (HeadersFrame mpri hdr) = object [ function 99 toJSON (PriorityFrame pri) = object [ function 104 toJSON (RSTStreamFrame e) = object [ function 114 toJSON (PingFrame odata) = object [ function 143 padObj = case toJSON fpPad of 208 toJSON (Pad padding) = object [ function [all …]
|
/dports/www/hs-wai-app-static/wai-app-static-3.1.7.2/_cabal_deps/http2-2.0.6/test-frame/ |
H A D | JSON.hs | 70 toJSON e = toJSON $ fromErrorCodeId e function 76 toJSON settings = toJSON $ map (first fromSettingsKeyId) settings function 82 toJSON bs = toJSON $ byteStringToText bs function 90 toJSON (DataFrame body) = object [ function 93 toJSON (HeadersFrame mpri hdr) = object [ function 99 toJSON (PriorityFrame pri) = object [ function 104 toJSON (RSTStreamFrame e) = object [ function 114 toJSON (PingFrame odata) = object [ function 143 padObj = case toJSON fpPad of 208 toJSON (Pad padding) = object [ function [all …]
|