Find Jobs
Hire Freelancers

Create JSON Parser in C

$10-30 USD

Ukończony
Opublikowano prawie 7 lat temu

$10-30 USD

Płatne przy odbiorze
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.
Identyfikator projektu: 14234408

Informację o projekcie

3 ofert
Zdalny projekt
Aktywny 7 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
hi .
$20 USD w 1 dzień
0,0 (0 opinii)
0,8
0,8
3 freelancerzy składają oferty o średniej wysokości $48 USD dla tej pracy
Awatar Użytkownika
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 w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga PHILIPPINES
Philippines
5,0
2
Zweryfikowana metoda płatności
Członek od cze 18, 2008

Weryfikacja Klienta

Inne pracę od tego klienta

Create a JSON Binary Parser
$10-30 USD
Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.