rust-web-server 16.1.0

Collection of utility functions used to build Rust Web and TLS Server. Can be useful while developing HTTP related functionality
Documentation
use crate::json::array::float::JSONArrayOfFloats;

#[test]
fn json_to_vector() {
    let json_array = "[-2.2, 0.0 , 5.5]".to_string();

    let boxed_parse = JSONArrayOfFloats::parse_as_list_f32(json_array);
    if boxed_parse.is_err() {
        // handle error
    }

    let _list : Vec<f32> = boxed_parse.unwrap();

}

#[test]
fn vector_to_json() {
    let json_array: Vec<f32> = vec![-2.2, 0.0, 5.5];

    let result = JSONArrayOfFloats::to_json_from_list_f32(&json_array);
    if result.is_err() {
        // handle error
    }

    let _json_array = result.unwrap();
}