Jason is a JSON parsing library for Elixir. See https://github.com/michalmuskala/jason
Questions tagged [elixir-jason]
33 questions
0
votes
2 answers
show json data in indian rupees format
[
{
"id": "1",
"accountName": "Account 1",
"debitAmount": "15453435",
"creditAmount":"313244"
},
{
"id": "2",
"accountName": "Account 2",
"debitAmount": "15453435",
…
0
votes
1 answer
JS returing key : value pair as in JSON format
I am working on a problem where I'm supposed to get a two-word string from a JS object and transform it to two new key:value pairs (e.g. get from: {name: "Bob Jones", Age:34} to: {firstName:Bob, lastName:Jones, Age:34}).
Below my code:
/*enter…

Michal Szarka
- 19
- 5
0
votes
1 answer
How to rectify Django Integrity Error while creating a nested serializer?
Got an integrity error
as shown in job
`
class JobSerializer(ModelSerializer):
company = CompanySerializer(read_only=True)
skills = SkillSerializer(many=True, read_only=True)
class Meta:
fields = ['title', 'description',…
0
votes
0 answers
How to ignore a field of JSON
I'm using WireMock and I need a command to ignore the field in the Jason. For XML files I have: "$ {xmlunit.ignore}" and it works. But what can I use for a Jason file?

Groszek
- 1
0
votes
0 answers
How do I display this data of people from JSON file and display them in separate cards on webpage
[
{
"name": "Luke Skywalker",
"height": "172",
"mass": "77"
},
{
"name": "C-3PO",
"height": "167"
},
{
"name": "R2-D2",
"height": "96",
"mass": "32",
}
]

Sanjeet Kotarya
- 3
- 1
0
votes
0 answers
PHP API no result from MSSQL server stored procedure when using temp table and its work when remove that TempTable
I have a stored proc in mssql. The SP works fine while executed directly. When I call it in PHP (PHP Version 8.1.2) I get no result.
The error in browser is:
Array (
[0] => Array
(
[0] => 01000
[SQLSTATE] => 01000
[1] => 16954
[code] => 16954
[2]…
0
votes
1 answer
How to read Json responce in to DataGridView using RestSharp in C# windows Application
{
"success": 1,
"items": [
{
"ItemID": "13",
"ItemName": "Diamond (50 Kg PP)",
"ItemDesc": "",
"MRP": "0",
"Rate": "0",
"Unit": "",
"Weight": "50",
"ItemGroup": ""
},
{
"ItemID":…

Ketan Patil
- 3
- 1
0
votes
1 answer
Vue 3 Convert scss to css
I want to create a css file from scss and this file has to save the changes after i stop writing.
Where do I have to define it in Vite and how to do it?
I am using Vue 3.

Throw
- 1
0
votes
2 answers
Fetch json data from url and write in a file
I'm trying to fetch Json data from a Url and then write the data in a Json File.
Here is my code :
let jsondata;
fetch('www....')
.then(function(u){
return u.json();
})
.then(function(json) {
jsondata = json;
…

wadpap
- 3
- 1
- 2
0
votes
0 answers
XML to JSON in python
I have been trying to convert a dataset file in xml format to json. I tried many solutions, non worked. I always got the same error:
ExpatError: not well-formed (invalid token): line 67667, column 103
I tried untangle, xmltodict, …

ahad
- 11
- 2
0
votes
1 answer
unable to deserialization Jason file though got the results upto response
jason file =
{
"educations": {
"count": 23,
"education": [{
"studId": "",
"joinDate": "2021-04-08 12:22",
"regDate": "2021-04-08 12:23",
"enrolled":…

Patali
- 1
0
votes
1 answer
How to remove this Jason response(timestamp, status, error, path)? I just want to get object data
{
"courseId": 23,
"courseName": "science",
"courseCode": "SC100",
"courseDescription": "linear algebra",
"courseDuration": "6 m",
"createdDate": 1630438611000,
"updatedDate": null,
"removeImages": []
}{
"timestamp": 1630614081354,
"status":…

Ranuga Udayanga
- 3
- 2
0
votes
1 answer
Elixir Absinthe Instrumentation
I'm looking to instrument my absinthe/phoenix server. I would like to find out how long it takes to encode data as json using Jason.
My endpoint.ex file looks like following:
defmodule AssessmentApi.Web.Endpoint do
use Phoenix.Endpoint, otp_app:…

GTDev
- 5,488
- 9
- 49
- 84
0
votes
2 answers
Elixir Multiple Jason Encoders for same struct
Suppose I'm building an API that is versioned (as an example let's use a user object):
%User{
id: "b2507407-891b-486e-aaf8-ba262c16d618"
first_name: "John",
last_name: "Doe",
email: "john@doe.com"
}
My initial thought was to have multiple…

leifg
- 8,668
- 13
- 53
- 79
-1
votes
1 answer
How can I display an image retrieved from database in JSON format?
I am trying to display an image on a webpage that I retrieved from the database using PHP and JavaScript in JSON format. I have tried looking for related questions with answers but I can't seem to comprehend anything. Please can someone help me in…

Juma Ijesun
- 1
- 3