Find Jobs
Hire Freelancers

Create JSON Parser in C

$10-30 USD

Complété
Publié il y a presque 7 ans

$10-30 USD

Payé lors de la livraison
JSON binary parser ------------------ To optimize the amount of data sent between the web browser to the web server a "clever" Javascript developer came up with the idea to translate JSON objects into binary format in the application and send them to the server. Faced with the fact that the Javascript is released in its final version to the customer it is now your task to develop the parser on the back end system. A JSON object is a hierarchy of key-value pairs where a value in its turn can contain new key-value pairs. It consists of four basic types: numbers, strings, arrays and dictionaries. An array is a list of values and a dictionay is a list of key-value pairs. The key can only be of the type number or string while a value can be of any type. A JSON object always starts with a value. An example JSON object can look like: { 'firstName': 'John', 'lastName': 'Smith', 'age': 25, 'address': { 'streetAddress': '21 2nd Street', 'city': 'New York', 'state': 'NY', 'postalCode': '10021' }, 'phoneNumber': [ { 'type': 'home', 'number': '212 555-1234' }, { 'type': 'fax', 'number': '646 555-4567' } ] } The binary representation of the JSON object contains an one byte identifier that describes the type of the data to follow and is then immediately followed by the data. The identifiers and their types are as follows: Identifier Type Description 0x01 Number 4 bytes signed integer in big endian byte order. 0x02 String N ASCII characters terminated by 0x00. 0x05 List Amount of items as a number followed by N values 0x06 Dictionary Amount of items as a number followed by N key-value pairs The program's task is to parse a binary file and print it as human readable text. It should read the data from standard input and write the result to standard output. Look at the files 'input_x' and their respective 'result_x' for examples of input and output.
N° de projet : 14234408

Concernant le projet

3 propositions
Projet à distance
Actif à il y a 7 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
hi .
$20 USD en 1 jour
0,0 (0 commentaires)
0,8
0,8
3 freelances proposent en moyenne $48 USD pour ce travail
Avatar de l'utilisateur
I have faced similar challenges in IEEEXtream coding competition and has experienced in both C and JSON. I'm confident that I can come up with a solution for this problem easily. Feel free to contact me for any farther clarifications. Thanks.
$25 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de PHILIPPINES
Philippines
5,0
2
Méthode de paiement vérifiée
Membre depuis juin 18, 2008

Vérification du client

Autres travaux de ce client

Create a JSON Binary Parser
$10-30 USD
Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.