Code Monkey home page Code Monkey logo

frends.json's People

Contributors

ekih avatar helvertti avatar jefim avatar jvuoti avatar nickeeex avatar rikuvirtanen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

frends.json's Issues

ConvertJTokenToXml task

There should be a task for converting a JToken to XML, so you can e.g. do XSL-transforms easily enough on the data.

Previously, there was the Frends.Common.Data.ConvertData.ConvertToXML task, that just called JsonConvert.DeserializeXmlNode(Input, XMLRootElementName).OuterXml. That should be good enough for now, as well.

QuerySingle does not return anything(not even NULL) when not matched

Case: some json elements are present based on certain conditions.
When doing a query with Frends.Json.Json.QuerySingle (1.1.35) and no such element is found from the json structure(option "Error when not matched" = false), the task returns nothing.

See image below. There is no #result to be found. Not even a null value.
This causes a problem when trying to e.g. in excl decision to find out whether the result was null or empty:
!string.IsNullOrEmpty(#result[Json.QuerySingleTask].ToString()) causes an error: "Cannot perform runtime binding on a null reference"

image

JSON validate example schema value does not validate anything!

Example JSON schema value should be fixed to include "required": ["name"], because without "required" propertie, it does not validate anything!
It should be added to documentation and Tasks default value - because now people use it like the example show and it does not validate as intended

Converting XML to JSON

Is Frends.Common.Data.ConvertToJSON task available any more? How can I do this conversion using available set of standard Frends tasks?

Json.Handlebars changes decimal separator depending on CultureInfo and there is no way to set CultureInfo

The Handlebars Task changes decimal separator to match what is "correct" according to machines CultureInfo. This makes it impossible to create valid JSON that contains decimal numbers on e.g. Finnish computer.

Fix proposal: add option to set culture info, like is done in csv task https://github.com/FrendsPlatform/Frends.Csv/blob/aa9c771e130b039de52743844252467d27c1ea24/Frends.Csv/Definitions.cs#L63

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.