GithubHelp home page GithubHelp logo

growthcharts / jamesclient Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.21 MB

R Client for Joint Automatic Measurement and Evaluation System (JAMES)

Home Page: https://growthcharts.org/jamesclient/

License: GNU Affero General Public License v3.0

R 2.51% HTML 97.46% TeX 0.02%
growth-curves growth-charts anthropometry restful-api james-server

jamesclient's People

Contributors

stefvanbuuren avatar

Watchers

 avatar  avatar

jamesclient's Issues

Conversion to JSON string does not work for format 2.0

There is a problem with the v2.0 format that prevents uploading a nicely formatted JSON string.

library(jamesclient)

fn1 <- system.file("extdata", "bds_v1.0", "smocc", "Laura_S.json", package = "jamesdemodata")
fn2 <- system.file("extdata", "bds_v2.0", "smocc", "Laura_S.json", package = "jamesdemodata")

js1a <- readLines(fn1)
js1b <- jsonlite::toJSON(jsonlite::fromJSON(fn1), auto_unbox = TRUE)
identical(js1a, js1b[1])
#> [1] TRUE

# works
resp1a <- request_chart(js1a)
resp1b <- request_chart(js1b)

js2a <- readLines(fn2)
js2b <- jsonlite::toJSON(jsonlite::fromJSON(fn2), auto_unbox = TRUE)
identical(js2a, js2b[1])
#> [1] FALSE

# works
resp2a <- request_chart(js2a)
# fails
resp2b <- request_chart(js2b)
#> Bad Request (HTTP 400).No encoding supplied: defaulting to UTF-8.

Created on 2021-11-24 by the reprex package (v2.0.1)

Might be related to https://stackoverflow.com/questions/58951351/how-to-remove-or-prevent-escape-slashes-from-json-file-data-in-azure-logic-app-w.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.