Find Jobs
Hire Freelancers

Create JSON Parser in C

$10-30 USD

Completato
Pubblicato quasi 7 anni fa

$10-30 USD

Pagato al completamento
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.
Rif. progetto: 14234408

Info sul progetto

3 proposte
Progetto a distanza
Attivo 7 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
Assegnato a:
Avatar dell'utente
hi .
$20 USD in 1 giorno
0,0 (0 valutazioni)
0,8
0,8
3 freelance hanno fatto un'offerta media di $48 USD
Avatar dell'utente
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 in 1 giorno
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: PHILIPPINES
Philippines
5,0
2
Metodo di pagamento verificato
Membro dal giu 18, 2008

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.